[node-patches] Change in ovirt-node[master]: Puppet page throws an exception when saving -- fix it

rbarry at redhat.com rbarry at redhat.com
Tue Jul 30 14:38:57 UTC 2013


Ryan Barry has uploaded a new change for review.

Change subject: Puppet page throws an exception when saving -- fix it
......................................................................

Puppet page throws an exception when saving -- fix it

ovirt.node.utils.fs.File() has changed arguments -- we don't set
the mode any longer, but the puppet_page was doing so. Change it
to the new interface.

Change-Id: Ia565cdd81560b1d1655d1ec75af595960751fbfa
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=986789
Signed-off-by: Ryan Barry <rbarry at redhat.com>
---
M src/ovirt/node/setup/puppet/puppet_page.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/89/17489/1

diff --git a/src/ovirt/node/setup/puppet/puppet_page.py b/src/ovirt/node/setup/puppet/puppet_page.py
index 57a5ada..03f1e4d 100644
--- a/src/ovirt/node/setup/puppet/puppet_page.py
+++ b/src/ovirt/node/setup/puppet/puppet_page.py
@@ -141,7 +141,7 @@
         cfg = Puppet().retrieve()
 
         lines = File("/etc/puppet/puppet.conf").read()
-        conf = File("/etc/puppet/puppet.conf", "w")
+        conf = File("/etc/puppet/puppet.conf")
         for line in lines:
             try:
                 item = re.match(r'^\s+(\w+) =', line).group(1)


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia565cdd81560b1d1655d1ec75af595960751fbfa
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