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

fabiand at redhat.com fabiand at redhat.com
Mon Sep 14 14:23:23 UTC 2015


Fabian Deutsch 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/06/46106/1

diff --git a/src/ovirt/node/utils/system.py b/src/ovirt/node/utils/system.py
index e18f9a0..472d0bb 100755
--- a/src/ovirt/node/utils/system.py
+++ b/src/ovirt/node/utils/system.py
@@ -1114,7 +1114,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/46106
To unsubscribe, visit https://gerrit.ovirt.org/settings

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



More information about the node-patches mailing list