Skip to content

Commit

Permalink
fix ceph_orch_apply multiple yaml
Browse files Browse the repository at this point in the history
this fix will load exisitng orch when we have more
than one yaml returnet for same serice.
  • Loading branch information
NikolayDachev committed Jan 21, 2025
1 parent fb33930 commit 4ef7e90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/ceph_orch_apply.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def retrieve_current_spec(module: AnsibleModule, expected_spec: Dict) -> Dict:
# if there is no existing service, cephadm returns the string 'No services reported'
return {}
else:
return yaml.safe_load(out[1])
return yaml.safe_load_all(out[1])


def apply_spec(module: "AnsibleModule",
Expand Down

0 comments on commit 4ef7e90

Please sign in to comment.