Skip to content

Commit

Permalink
ceph_orch_apply: code change for clarity
Browse files Browse the repository at this point in the history
Signed-off-by: Teoman ONAY <tonay@ibm.com>
  • Loading branch information
asm0deuz committed May 16, 2024
1 parent 7bef49f commit 98fb4f0
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions library/ceph_orch_apply.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,8 @@ def retrieve_current_spec(module: AnsibleModule, expected_spec: Dict) -> Dict:

def change_required(current: Dict, expected: Dict) -> bool:
""" checks if the current config differs from what is expected """
if not current:
if not current or current != expected:
return True

for key, value in expected.items():
if key in current:
if current[key] != value:
return True
continue
else:
return True
return False


Expand Down

0 comments on commit 98fb4f0

Please sign in to comment.