[node-patches] Change in ovirt-node[master]: Use python to run py hooks
fabiand at fedoraproject.org
fabiand at fedoraproject.org
Wed Oct 30 12:16:38 UTC 2013
Fabian Deutsch has uploaded a new change for review.
Change subject: Use python to run py hooks
......................................................................
Use python to run py hooks
Change-Id: I2fb7cb2c30ebe900aa7004b12449e4f1f07ae23f
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1020774
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M src/ovirtnode/ovirtfunctions.py
1 file changed, 5 insertions(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/99/20699/1
diff --git a/src/ovirtnode/ovirtfunctions.py b/src/ovirtnode/ovirtfunctions.py
index a81d642..bb1d9fe 100644
--- a/src/ovirtnode/ovirtfunctions.py
+++ b/src/ovirtnode/ovirtfunctions.py
@@ -1111,7 +1111,11 @@
hookdir="/etc/ovirt-config-boot.d"
for hook in os.listdir(hookdir):
if not is_auto_install():
- system_closefds(os.path.join(hookdir,hook) + " &> /dev/null")
+ hookscript = os.path.join(hookdir,hook))
+ if hook.endswith(".py"):
+ system_closefds("python " + hookscript)
+ else:
+ system_closefds(hookscript + " &> /dev/null")
for f in ["/etc/ssh/ssh_host%s_key" % t for t in ["", "_dsa", "_rsa"]]:
ovirt_store_config(f)
ovirt_store_config("%s.pub" % f)
--
To view, visit http://gerrit.ovirt.org/20699
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2fb7cb2c30ebe900aa7004b12449e4f1f07ae23f
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>
More information about the node-patches
mailing list