[node-patches] Change in ovirt-node[master]: plugins: update plugin page to ignore .minimize files in /et...
jboggs at redhat.com
jboggs at redhat.com
Sat Sep 8 01:10:46 UTC 2012
Joey Boggs has uploaded a new change for review.
Change subject: plugins: update plugin page to ignore .minimize files in /etc/ovirt-plugins.d
......................................................................
plugins: update plugin page to ignore .minimize files in /etc/ovirt-plugins.d
Change-Id: I6f2994eb15b55eada478385862d52518fac8cf89
Signed-off-by: Joey Boggs <jboggs at redhat.com>
---
M scripts/ovirt_config_setup/plugins.py
1 file changed, 8 insertions(+), 7 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/54/7854/1
diff --git a/scripts/ovirt_config_setup/plugins.py b/scripts/ovirt_config_setup/plugins.py
index fdd1793..27562fe 100755
--- a/scripts/ovirt_config_setup/plugins.py
+++ b/scripts/ovirt_config_setup/plugins.py
@@ -29,13 +29,14 @@
if os.path.exists(plugin_dir):
plugin_dict = {}
for f in os.listdir(plugin_dir):
- p = open(plugin_dir + f)
- lines = p.readlines()
- name = lines[0].strip().split(":")[1]
- ver = lines[1].strip().split(":")[1]
- install_date = lines[2].strip().replace("Install Date:", "")
- p.close()
- plugin_dict[name] = "%s,%s" % (ver, install_date)
+ if not f.endswith(".minimize"):
+ p = open(plugin_dir + f)
+ lines = p.readlines()
+ name = lines[0].strip().split(":")[1]
+ ver = lines[1].strip().split(":")[1]
+ install_date = lines[2].strip().replace("Install Date:", "")
+ p.close()
+ plugin_dict[name] = "%s,%s" % (ver, install_date)
return plugin_dict
--
To view, visit http://gerrit.ovirt.org/7854
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6f2994eb15b55eada478385862d52518fac8cf89
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Joey Boggs <jboggs at redhat.com>
More information about the node-patches
mailing list