Skip to content

Commit

Permalink
Update library/ceph_orch_apply.py
Browse files Browse the repository at this point in the history
Co-authored-by: Guillaume Abrioux <gabrioux@ibm.com>
  • Loading branch information
foyerunix and guits authored May 31, 2024
1 parent 3d37038 commit 4f71f48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions library/ceph_orch_apply.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ def run_module() -> None:
current_spec = retrieve_current_spec(module, expected)

# Remove dynamic attributes
if current_spec and 'status' in current_spec:
del current_spec["status"]
if current_spec and 'events' in current_spec:
del current_spec["events"]
DYNAMIC_ATTRIBUTES: List[str] = ['status', 'events']
for attribute in DYNAMIC_ATTRIBUTES:
if attribute in current_spec:
del current_spec[attribute]

diff = dict(before=yaml.safe_dump(current_spec), after=yaml.safe_dump(expected))

Expand Down

0 comments on commit 4f71f48

Please sign in to comment.