Sam,

On 22.01.2018 11:39, fatal wrote:
I can build my playbook around this with grepping for "Configuration OK"
in the output[1], but it would be nice to habe bird return a non zero
value if the config check fails.

Use bird -p for that:

# bird -p -c /etc/bird/bird.conf; echo $?
0
# bird -p -c /etc/profile; echo $?
bird: /etc/profile, line 4: syntax error
1

Best,
Piotr
--
Piotr 'GhosT' Wydrych ........ Senior Lead Sw. Eng., SDN ........ Akamai
........................................................................
A: Because it messes up the order in which people normally read text. ..
Q: Why is top-posting such a bad thing? ................................

Reply via email to