[node-patches] Change in ovirt-node[master]: network: Use pythonic method to retrieve the active hostname

fabiand at redhat.com fabiand at redhat.com
Wed Jul 22 12:14:13 UTC 2015


Fabian Deutsch has submitted this change and it was merged.

Change subject: network: Use pythonic method to retrieve the active hostname
......................................................................


network: Use pythonic method to retrieve the active hostname

Previously we read a file to determin the hostanme, but that file
is not present in all distros.
Now we use socket.gethostname() to determin the hostanem, instead of
relying on that file.

Change-Id: I7522def9aafb18be7dfc7b13c35f0ed0b45583a8
Signed-off-by: Douglas Schilling Landgraf <dougsland at redhat.com>
---
M src/ovirt/node/config/network.py
1 file changed, 3 insertions(+), 11 deletions(-)

Approvals:
  Fabian Deutsch: Verified; Looks good to me, approved; Passed CI tests



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

Gerrit-MessageType: merged
Gerrit-Change-Id: I7522def9aafb18be7dfc7b13c35f0ed0b45583a8
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Douglas Schilling Landgraf <dougsland at redhat.com>
Gerrit-Reviewer: Anatoly Litovsky <tlitovsk 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: Ryan Barry <rbarry at redhat.com>
Gerrit-Reviewer: automation at ovirt.org



More information about the node-patches mailing list