Skip to content

Commit

Permalink
Fixes #15901: Ununderstandable error messages when server is not up a…
Browse files Browse the repository at this point in the history
…nd agent is installed
  • Loading branch information
amousset committed Oct 8, 2019
1 parent f3e2bb8 commit dac10fa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions share/commands/agent-inventory
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@

bootstrap_check

# We cannnot strart an inventory in bootstrap policies
if cmp -s "/var/rudder/cfengine-community/inputs/failsafe.cf" "/opt/rudder/share/bootstrap-promises/failsafe.cf"
then
>&2 echo "Agent is currently in bootstrap policies, cannot run an inventory, you need to download initial policies from the server"
exit 1
fi

# Ignore disable-inventory flag
FORCE=0
OPTS=""
Expand Down

0 comments on commit dac10fa

Please sign in to comment.