From 4ef7e90b4919cfe507a4e9717e11730de33d976c Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 21 Jan 2025 19:58:14 +0200 Subject: [PATCH] fix ceph_orch_apply multiple yaml this fix will load exisitng orch when we have more than one yaml returnet for same serice. --- plugins/modules/ceph_orch_apply.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/ceph_orch_apply.py b/plugins/modules/ceph_orch_apply.py index c0feb37..a6ac5b6 100644 --- a/plugins/modules/ceph_orch_apply.py +++ b/plugins/modules/ceph_orch_apply.py @@ -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",