Bugfix and assorted fixes (#28352)

These are updates from aci-ansible.
This commit is contained in:
Dag Wieers 2017-08-17 21:00:23 +02:00 committed by GitHub
parent d4cedbee20
commit e801187899
5 changed files with 22 additions and 21 deletions

View file

@ -118,7 +118,7 @@ def main():
description = module.params['description']
scope = module.params['scope']
priority = module.params['priority']
target = module.params['target']
dscp = module.params['dscp']
state = module.params['state']
aci = ACIModule(module)
@ -143,7 +143,7 @@ def main():
if state == 'present':
# Filter out module parameters with null values
aci.payload(aci_class='vzBrCP', class_config=dict(name=contract, descr=description, scope=scope, prio=priority, targetDscp=target))
aci.payload(aci_class='vzBrCP', class_config=dict(name=contract, descr=description, scope=scope, prio=priority, targetDscp=dscp))
# Generate config diff which will be used as POST request body
aci.get_diff(aci_class='vzBrCP')