Bug #11047
Updated by Janos Mattyasovszky over 7 years ago
If you run @rudder agent run -q@, it exits 1, so you cannot use it to check silently if it succeeded or not. Additionally, it also reports OK with exit code 0if you run it without @-q@ but it is not able to update the policies: <pre> # rudder agent update R: ********************************************************************************* * rudder-agent could not get an updated configuration from the policy server. * * This can be caused by: * * * a networking issue * * * an unavailable server * * * if the node's IP in not if the allowed networks of its policy server. * * Any existing configuration policy will continue to be applied without change. * ********************************************************************************* ok: Rudder agent promises were updated. # echo $? 0 </pre> This is unusable in this way for anything other than human interpretation or grepping for the error report in the output. It would be nice if the return code would represent the success of the update. found on rudder-agent-4.1.5.release-1.SLES.11 4.1.5