Skip to content

Commit e0e8511

Browse files
shrsrlhercot
authored andcommitted
[bugfix] Modified code to get description value without an explicit default in aci_l4l7_service_graph_template
1 parent 2b2e0b5 commit e0e8511

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

plugins/modules/aci_l4l7_service_graph_template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def main():
278278
type = module.params.get("type")
279279
service_rule_type = module.params.get("service_rule_type")
280280
filter_between_nodes = module.params.get("filter_between_nodes")
281-
description = (module.params.get("description"),)
281+
description = module.params.get("description")
282282

283283
aci = ACIModule(module)
284284

tests/integration/targets/aci_l4l7_service_graph_template/tasks/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
tenant: ansible_tenant
5050
service_graph: ansible_service_graph
5151
ui_template_type: one_node_fw_routed
52+
description: my template
5253
state: present
5354
check_mode: true
5455
register: create_sgt_cm
@@ -66,10 +67,12 @@
6667
- create_sgt_cm.proposed.vnsAbsGraph.attributes.dn == "uni/tn-ansible_tenant/AbsGraph-ansible_service_graph"
6768
- create_sgt_cm.proposed.vnsAbsGraph.attributes.name == "ansible_service_graph"
6869
- create_sgt_cm.proposed.vnsAbsGraph.attributes.uiTemplateType == "ONE_NODE_FW_ROUTED"
70+
- create_sgt_cm.proposed.vnsAbsGraph.attributes.descr == "my template"
6971
- create_sgt.previous == []
7072
- create_sgt.current.0.vnsAbsGraph.attributes.dn == "uni/tn-ansible_tenant/AbsGraph-ansible_service_graph"
7173
- create_sgt.current.0.vnsAbsGraph.attributes.name == "ansible_service_graph"
7274
- create_sgt.current.0.vnsAbsGraph.attributes.uiTemplateType == "ONE_NODE_FW_ROUTED"
75+
- create_sgt.current.0.vnsAbsGraph.attributes.descr == "my template"
7376

7477
# ADD service graph template again to check idempotence
7578
- name: Create L4-L7 Service Graph Template again

0 commit comments

Comments
 (0)