[node-patches] Change in ovirt-node[master]: storage: Don't warn about non-existant candidates

fabiand at fedoraproject.org fabiand at fedoraproject.org
Mon Aug 27 14:25:28 UTC 2012


Fabian Deutsch has uploaded a new change for review.

Change subject: storage: Don't warn about non-existant candidates
......................................................................

storage: Don't warn about non-existant candidates

When looping through all devices don't warn if a candidate to be wiped
does not exist, as this is a valid case. The warning was displayed on
the screen, the priority is now info, which just loggs the message to a
file.

Change-Id: I1cadce6106e8cb10dc2f63bbefff7abdc3d5fda6
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M scripts/ovirtnode/storage.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/07/7507/1

diff --git a/scripts/ovirtnode/storage.py b/scripts/ovirtnode/storage.py
index 374b511..d505b83 100644
--- a/scripts/ovirtnode/storage.py
+++ b/scripts/ovirtnode/storage.py
@@ -172,7 +172,7 @@
         for dev in devs:
             logger.debug("Considering device '%s'" % dev)
             if not os.path.exists(dev):
-                logger.warn("'%s' is no device, let's try the next one." % dev)
+                logger.info("'%s' is no device, let's try the next one." % dev)
                 continue
             part_delim = "p"
             # FIXME this should be more intelligent


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

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