Skip to content

Commit

Permalink
[ignore] rename payload to mso_values
Browse files Browse the repository at this point in the history
  • Loading branch information
akinross committed Dec 5, 2024
1 parent 5f1a949 commit 1664095
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/modules/ndo_tenant_mld_snooping_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def main():
if uuid and not mso.existing:
mso.fail_json(msg="{0} with the UUID: '{1}' not found".format(object_description, uuid))

payload = dict(
mso_values = dict(
name=name,
description=description,
enableAdminState=admin_state,
Expand All @@ -286,10 +286,10 @@ def main():

if mso.existing:
proposed_payload = copy.deepcopy(match.details)
append_update_ops_data(ops, proposed_payload, mld_snooping_policy_attrs_path, payload, [])
append_update_ops_data(ops, proposed_payload, mld_snooping_policy_attrs_path, mso_values, [])
mso.sanitize(proposed_payload, collate=True)
else:
mso.sanitize(payload)
mso.sanitize(mso_values)
ops.append(dict(op="add", path="/tenantPolicyTemplate/template/mldSnoopPolicies/-", value=mso.sent))

elif state == "absent":
Expand Down

0 comments on commit 1664095

Please sign in to comment.