Skip to content

Commit

Permalink
formatted code
Browse files Browse the repository at this point in the history
Signed-off-by: Sumanth Lingappa <[email protected]>
  • Loading branch information
sumanth-lingappa committed Feb 22, 2024
1 parent 9254f62 commit 7cf31a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/module_utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@ def get_bindprimary_key(binding_name, binding_member):
if binding_name == "servicegroup_servicegroupmember_binding":
if bindprimary_key == "ip":
if (
"ip" not in binding_member or binding_member["ip"] == "0.0.0.0" # nosec: B104
"ip" not in binding_member
or binding_member["ip"] == "0.0.0.0" # nosec: B104
):
bindprimary_key = "servername"
elif "servername" in binding_member and binding_member["servername"]:
Expand Down

0 comments on commit 7cf31a7

Please sign in to comment.