fix failure got multiple values for keyword argument id (#33624)

* fix failure `got multiple values for keyword argument id`

* fix test case failure

* fix pylint error

* fix typo

* use fixed version of azure mgmt network sdk

* resolve code review feedbacks
This commit is contained in:
ZhijunZhao 2018-01-05 00:22:35 +08:00 committed by Matt Davis
parent d61742147f
commit 99551818a1

View file

@ -446,11 +446,11 @@ def create_rule_instance(rule):
:return: SecurityRule
'''
return SecurityRule(
rule['protocol'],
rule['source_address_prefix'],
rule['destination_address_prefix'],
rule['access'],
rule['direction'],
protocol=rule['protocol'],
source_address_prefix=rule['source_address_prefix'],
destination_address_prefix=rule['destination_address_prefix'],
access=rule['access'],
direction=rule['direction'],
id=rule.get('id', None),
description=rule.get('description', None),
source_port_range=rule.get('source_port_range', None),