Alon Bar-Lev has uploaded a new change for review.

Change subject: vdsmhooks: use short distribution name as suffix
......................................................................

vdsmhooks: use short distribution name as suffix

Change-Id: I17fd3ef3f4415bf45b96eb4864042e80930666fa
Signed-off-by: Alon Bar-Lev <alo...@redhat.com>
---
M src/plugins/ovirt-host-deploy/vdsmhooks/hooks.py
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-host-deploy 
refs/changes/26/26726/1

diff --git a/src/plugins/ovirt-host-deploy/vdsmhooks/hooks.py 
b/src/plugins/ovirt-host-deploy/vdsmhooks/hooks.py
index 5479b32..67080f6 100644
--- a/src/plugins/ovirt-host-deploy/vdsmhooks/hooks.py
+++ b/src/plugins/ovirt-host-deploy/vdsmhooks/hooks.py
@@ -99,7 +99,9 @@
             for name in sorted(os.listdir(pluginpackagesdir)):
                 if name.startswith('.'):
                     continue
-                if name.endswith(platform.linux_distribution()):
+                if name.endswith(
+                    platform.linux_distribution(full_distribution_name=0)[0]
+                ):
                     with open(name, 'r') as f:
                         for package in f:
                             self.packager.installUpdate(package)


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I17fd3ef3f4415bf45b96eb4864042e80930666fa
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-host-deploy
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <alo...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to