[node-patches] Change in ovirt-node[ovirt-3.5]: kdump: Persist fstab

fabiand at redhat.com fabiand at redhat.com
Wed Nov 26 11:29:36 UTC 2014


Fabian Deutsch has uploaded a new change for review.

Change subject: kdump: Persist fstab
......................................................................

kdump: Persist fstab

Change-Id: I4320388072176472839c08b70b0ae8c82f8f9c19
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1095140
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M src/ovirt/node/config/defaults.py
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/92/35592/1

diff --git a/src/ovirt/node/config/defaults.py b/src/ovirt/node/config/defaults.py
index 81f899c..08ec246 100755
--- a/src/ovirt/node/config/defaults.py
+++ b/src/ovirt/node/config/defaults.py
@@ -1134,6 +1134,7 @@
                     File("/etc/fstab").write(
                         "\n%s\t%s\tnfs\tdefaults\t0 0" % (nfs, nfs_path),
                         "a")
+                    Config().persist("/etc/fstab")
                 except utils.process.CalledProcessError:
                     self.logger.warning("Failed to mount %s at " +
                                         "%s" % (nfs, nfs_path),
@@ -1220,7 +1221,7 @@
                              "/root/.ssh/known_hosts",
                              "/root/.ssh/config"]
 
-                    [conf.persist(file) for file in files]
+                    [conf.persist(f) for f in files]
 
                 except utils.process.CalledProcessError as e:
                     self.logger.warning("Failed to activate KDump with " +


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4320388072176472839c08b70b0ae8c82f8f9c19
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: ovirt-3.5
Gerrit-Owner: Fabian Deutsch <fabiand at redhat.com>
Gerrit-Reviewer: Fabian Deutsch <fabiand at redhat.com>



More information about the node-patches mailing list