Skip to content

Commit 94e5b8f

Browse files
committed
Don't treat non-zero ntp exit code as an error.
`ntp` returns with a non-zero code when the NTP clock has drifted too far; that's not an error from the point of view of the Fabric command.
1 parent 12c43d6 commit 94e5b8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ntp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@task
44
def status():
55
"""Report the VM's NTP status."""
6-
run("/usr/lib/nagios/plugins/check_ntp_time -q -H ntp.ubuntu.com -w 2 -c 3")
6+
run("/usr/lib/nagios/plugins/check_ntp_time -q -H ntp.ubuntu.com -w 2 -c 3", warn_only=True)
77

88
@task
99
def resync():

0 commit comments

Comments
 (0)