From 99551818a125847756f0682f748ad056e09bc4da Mon Sep 17 00:00:00 2001 From: ZhijunZhao Date: Fri, 5 Jan 2018 00:22:35 +0800 Subject: [PATCH] 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 --- .../modules/cloud/azure/azure_rm_securitygroup.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/ansible/modules/cloud/azure/azure_rm_securitygroup.py b/lib/ansible/modules/cloud/azure/azure_rm_securitygroup.py index b6008ef5e5..8f502a6948 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_securitygroup.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_securitygroup.py @@ -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),