[node-patches] Change in ovirt-node[master]: ntpd: condition for start

fabiand at redhat.com fabiand at redhat.com
Tue Jun 2 05:54:41 UTC 2015


Fabian Deutsch has posted comments on this change.

Change subject: ntpd: condition for start
......................................................................


Patch Set 1:

(1 comment)

Yes, in general a great clean solution.

Just one nitpick.

https://gerrit.ovirt.org/#/c/41812/1/src/ovirt/node/setup/core/network_page.py
File src/ovirt/node/setup/core/network_page.py:

Line 159:         if nameservers:
Line 160:             for idx, nameserver in enumerate(nameservers):
Line 161:                 model["dns[%d]" % idx] = nameserver
Line 162: 
Line 163:         if os.path.exists(utils.fs.Config()._config_path("/etc/ntp.conf")):
This can be Config().exists(fn)
Line 164:             timeservers = config.network.timeservers()
Line 165:             if timeservers:
Line 166:                 for idx, timeserver in enumerate(timeservers):
Line 167:                     model["ntp[%d]" % idx] = timeserver


-- 
To view, visit https://gerrit.ovirt.org/41812
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Iebee8a8581fd0b51d07bde04b1f878a1cb5481ba
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Douglas Schilling Landgraf <dougsland at redhat.com>
Gerrit-Reviewer: Douglas Schilling Landgraf <dougsland at redhat.com>
Gerrit-Reviewer: Fabian Deutsch <fabiand at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: automation at ovirt.org
Gerrit-HasComments: Yes



More information about the node-patches mailing list