Ryan Barry has uploaded a new change for review. Change subject: Treat VERSION as a float in SystemRelease ......................................................................
Treat VERSION as a float in SystemRelease EL7 doesn't like trying to cast "7.X" to an int. Convert it to a float to fix it, and in case we ever want to be more specific Change-Id: I826e1f1f121c57ba43a85054fbadfab7987998d5 Signed-off-by: Ryan Barry <[email protected]> --- 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/06/44006/1 diff --git a/src/ovirt/node/utils/system.py b/src/ovirt/node/utils/system.py index 5f99d1d..1dc1969 100755 --- a/src/ovirt/node/utils/system.py +++ b/src/ovirt/node/utils/system.py @@ -486,7 +486,8 @@ if cpe_parts[0] != "cpe": raise RuntimeError("Can not parse CPE string in %s" % self.CPE_FILE) - self.VENDOR, self.PRODUCT, self.VERSION = cpe_parts[2:5] + self.VENDOR, self.PRODUCT = cpe_parts[2:4] + self.VERSION = float(cpe_parts[5]) def cpe(self): """Return the CPE URI -- To view, visit https://gerrit.ovirt.org/44006 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I826e1f1f121c57ba43a85054fbadfab7987998d5 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-node Gerrit-Branch: master Gerrit-Owner: Ryan Barry <[email protected]> _______________________________________________ node-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/node-patches
