Skip to content

Commit

Permalink
Move set_iml_profile (#85)
Browse files Browse the repository at this point in the history
Always run `set_iml_profile`.

Fixes #84.

Signed-off-by: Joe Grund <[email protected]>
  • Loading branch information
jgrund authored Apr 23, 2019
1 parent 6fda4ed commit ecb063d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions chroma_agent/action_plugins/settings_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ def set_profile(profile_json):

try:
config.set("settings", "profile", profile)
set_iml_profile(
profile.get("name"), profile.get("bundles"), profile.get("packages")
)
except ConfigKeyExistsError:
config.update("settings", "profile", profile)

set_iml_profile(
profile.get("name"), profile.get("bundles"), profile.get("packages")
)


def set_agent_config(key, val):
agent_settings = config.get("settings", "agent")
Expand Down

0 comments on commit ecb063d

Please sign in to comment.