Skip to content

Commit

Permalink
Added helpful message about "not bootstrapped yet"
Browse files Browse the repository at this point in the history
Ticket: CFE-4466
Signed-off-by: Victor Moene <victor.moene@northern.tech>
  • Loading branch information
victormlg committed Dec 11, 2024
1 parent 1a58fe2 commit 27d45e6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cf_remote/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,15 @@ def print_info(data):
agent_version = data["agent_version"]
if agent_version:
output["CFEngine"] = agent_version

policy_server = data.get("policy_server")
if policy_server :
output["Policy server"] = policy_server
else :
output["Policy server"] = "None (not bootstrapped yet)"
else:
output["CFEngine"] = "Not installed"

output["Policy server"] = data.get("policy_server")

binaries = []
if "bin" in data:
Expand Down

0 comments on commit 27d45e6

Please sign in to comment.