[node-patches] Change in ovirt-node[master]: system.py: add centos for is_el validation

dougsland at redhat.com dougsland at redhat.com
Wed Aug 6 03:13:33 UTC 2014


Douglas Schilling Landgraf has uploaded a new change for review.

Change subject: system.py: add centos for is_el validation
......................................................................

system.py: add centos for is_el validation

is_el() should work for based RHEL distro. Commit 3d890b3
fails in case cannot find el distro. This patch adds
the validation for centos.

Change-Id: I2e636183e468fe35c04c3c950eefceacf0e4b1b7
Signed-off-by: Douglas Schilling Landgraf <dougsland at redhat.com>
---
M src/ovirt/node/utils/system.py
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/16/31116/1

diff --git a/src/ovirt/node/utils/system.py b/src/ovirt/node/utils/system.py
index 41dc9b3..68fac19 100644
--- a/src/ovirt/node/utils/system.py
+++ b/src/ovirt/node/utils/system.py
@@ -427,7 +427,8 @@
     def is_el(self):
         """Determin if this system is an "enterprise linux" (RHEL, CentOS)
         """
-        return self.VENDOR.lower() == "redhat"
+        return self.VENDOR.lower() == "redhat" or \
+            self.VENDOR.lower() == "centos"
 
     def is_min_el(self, minversion):
         """Determin if this system is an EL and at min version minversion


-- 
To view, visit http://gerrit.ovirt.org/31116
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2e636183e468fe35c04c3c950eefceacf0e4b1b7
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Douglas Schilling Landgraf <dougsland at redhat.com>



More information about the node-patches mailing list