[node-patches] Change in ovirt-node[master]: Log the grub filename, not the File object

rbarry at redhat.com rbarry at redhat.com
Thu Sep 10 15:03:57 UTC 2015


Ryan Barry has uploaded a new change for review.

Change subject: Log the grub filename, not the File object
......................................................................

Log the grub filename, not the File object

Trivial change -- log the property, not the object, so we can see
the actual grub config filename we thought we'd match in the logs

Change-Id: I3a53876be222efd0d7ed90d62d5c950acd9ef5af
Signed-off-by: Ryan Barry <rbarry at redhat.com>
---
M src/ovirt/node/utils/system.py
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/25/46025/1

diff --git a/src/ovirt/node/utils/system.py b/src/ovirt/node/utils/system.py
index 179b5db..229e596 100644
--- a/src/ovirt/node/utils/system.py
+++ b/src/ovirt/node/utils/system.py
@@ -996,7 +996,8 @@
         cfg = File(cfg_path)
 
         if not cfg.exists():
-            raise RuntimeError("Grub config file does not exist: %s" % cfg)
+            raise RuntimeError("Grub config file does not exist: %s" %
+                               cfg.filename)
 
         return cfg
 


-- 
To view, visit https://gerrit.ovirt.org/46025
To unsubscribe, visit https://gerrit.ovirt.org/settings

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