From a82348616b1bb1b8054a8cdf000a19606f70ee62 Mon Sep 17 00:00:00 2001 From: Joe Grund Date: Thu, 16 May 2019 10:02:10 -0500 Subject: [PATCH] Add copr repo COPR Module: managerforlustre/server-profile-fixes Signed-off-by: Joe Grund --- chroma_core/models/host.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chroma_core/models/host.py b/chroma_core/models/host.py index 2156f90382..5d737c2af0 100644 --- a/chroma_core/models/host.py +++ b/chroma_core/models/host.py @@ -1019,7 +1019,7 @@ def run(self, kwargs): host = kwargs["host"] server_profile = kwargs["server_profile"] - self.invoke_agent_expect_result(host, "set_profile", {"profile": server_profile.as_dict}) + self.invoke_agent_expect_result(host, "set_profile", {"profile_json": json.dumps(server_profile.as_dict)}) job_scheduler_notify.notify(host, tznow(), {"server_profile_id": server_profile.id}) @@ -1482,7 +1482,7 @@ class UpdateProfileStep(RebootIfNeededStep): database = True def run(self, kwargs): - self.invoke_agent(kwargs["host"], "update_profile", {"profile_json": json.dumps(kwargs["profile"].as_dict)}) + self.invoke_agent(kwargs["host"], "update_profile", {"profile": kwargs["profile"].as_dict}) class UpdateYumFileStep(RebootIfNeededStep):