Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Update / Set profile agent commands appear reversed #942

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions chroma_core/models/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,7 @@ def run(self, kwargs):
host = kwargs["host"]
server_profile = kwargs["server_profile"]

self.invoke_agent_expect_result(host, "update_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})

Expand Down Expand Up @@ -1482,7 +1482,7 @@ class UpdateProfileStep(RebootIfNeededStep):
database = True

def run(self, kwargs):
self.invoke_agent(kwargs["host"], "set_profile", {"profile_json": json.dumps(kwargs["profile"].as_dict)})
self.invoke_agent(kwargs["host"], "update_profile", {"profile": kwargs["profile"].as_dict})


class UpdateYumFileStep(RebootIfNeededStep):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ if [ -n \"$STORAGE_SERVER_REPOS\" ]; then
echo
curl \"\$repo\"
} >> /usr/share/chroma-manager/base.repo

echo -e '\n' >> /usr/share/chroma-manager/base.repo
done
fi

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ if [ -n \"$STORAGE_SERVER_REPOS\" ]; then
echo
curl \"\$repo\"
} >> /usr/share/chroma-manager/base.repo

echo -e '\n' >> /usr/share/chroma-manager/base.repo
done
fi

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ if [ -n \"$STORAGE_SERVER_REPOS\" ]; then
echo
curl \"\$repo\"
} >> /usr/share/chroma-manager/base.repo

echo -e '\n' >> /usr/share/chroma-manager/base.repo
done
fi

Expand Down