[node-patches] Change in ovirt-node[master]: Tweak puppet autoinstall

rbarry at redhat.com rbarry at redhat.com
Fri Oct 18 19:29:52 UTC 2013


Ryan Barry has uploaded a new change for review.

Change subject: Tweak puppet autoinstall
......................................................................

Tweak puppet autoinstall

Previously, we didn't convert they keys from kernel args to valid
keys for a model. Do so.

Change-Id: I2b91d99eededbed79458d714545edde0c0326cd2
Signed-off-by: Ryan Barry <rbarry at redhat.com>
---
M plugins/puppet_autoinstall.py
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/03/20303/1

diff --git a/plugins/puppet_autoinstall.py b/plugins/puppet_autoinstall.py
index a684399..6fe4b8a 100644
--- a/plugins/puppet_autoinstall.py
+++ b/plugins/puppet_autoinstall.py
@@ -34,7 +34,8 @@
 })
 if changes:
     effective_model.update(changes)
-    Puppet().update(*effective_model.values_for(keys))
+    real_keys = [re.sub(r'_', r'.', key) for key in keys]
+    Puppet().update(*effective_model.values_for(real_keys))
 if "puppet_enabled" in args and (re.compile(r'y', re.I).match(args[
         "puppet_enabled"]) or args["puppet_enabled"] == "1"):
         ActivatePuppet()


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2b91d99eededbed79458d714545edde0c0326cd2
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Ryan Barry <rbarry at redhat.com>



More information about the node-patches mailing list