Alon Bar-Lev has uploaded a new change for review. Change subject: bootstrap: survive missing ntpq ......................................................................
bootstrap: survive missing ntpq Minimal fedora installation does not have ntpq. Change-Id: I87505b0d008bd7914fb673d6a38eccca1bbf83e2 Signed-off-by: Alon Bar-Lev <alo...@redhat.com> --- M vdsm_reg/deployUtil.py.in 1 file changed, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/97/7597/1 diff --git a/vdsm_reg/deployUtil.py.in b/vdsm_reg/deployUtil.py.in index fc7df29..028fef5 100644 --- a/vdsm_reg/deployUtil.py.in +++ b/vdsm_reg/deployUtil.py.in @@ -691,7 +691,9 @@ import time fReturn = True - out, err, rc = _logExec([EX_NTPQ, "-c", "rv"]) + out = "" + if os.path.exists(EX_NTPQ): + out, err, rc = _logExec([EX_NTPQ, "-c", "rv"]) if 'clock_sync' in out: logging.debug("setHostTime: Time is synchronised to NTP server.") else: -- To view, visit http://gerrit.ovirt.org/7597 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I87505b0d008bd7914fb673d6a38eccca1bbf83e2 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Alon Bar-Lev <alo...@redhat.com> _______________________________________________ vdsm-patches mailing list vdsm-patches@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches