Skip to content

Commit

Permalink
Merge pull request #421 from mmojzis/azure_security_rule_fix
Browse files Browse the repository at this point in the history
[RFR]Azure SecurityRule fix, keyword arguments have to be used
  • Loading branch information
mshriver authored Oct 17, 2019
2 parents ea83177 + 5628e20 commit 0e76fa2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wrapanapi/systems/msazure.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,8 +850,9 @@ def create_netsec_group_port_allow(self, secgroup_name, protocol,

parameters = NetworkSecurityGroup(location=self.region)
parameters.security_rules = [
SecurityRule(protocol, source_address_prefix, destination_address_prefix,
access, direction, **kwargs)]
SecurityRule(protocol=protocol, source_address_prefix=source_address_prefix,
destination_address_prefix=destination_address_prefix,
access=access, direction=direction, **kwargs)]
nsg = self.network_client.network_security_groups
operation = nsg.create_or_update(resource_group, secgroup_name, parameters)
operation.wait()
Expand Down

0 comments on commit 0e76fa2

Please sign in to comment.