[node-patches] Change in ovirt-node[master]: Fixing wrong None type detectio
tlitovsk at redhat.com
tlitovsk at redhat.com
Wed Aug 5 11:28:29 UTC 2015
Anatoly Litovsky has uploaded a new change for review.
Change subject: Fixing wrong None type detectio
......................................................................
Fixing wrong None type detectio
Change-Id: Ia29961324b80bcc9a3593d16c5913105a664ed75
Signed-off-by: Tolik Litovsky <tlitovsk at redhat.com>
---
M src/ovirtnode/ovirtfunctions.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/09/44409/1
diff --git a/src/ovirtnode/ovirtfunctions.py b/src/ovirtnode/ovirtfunctions.py
index aec1577..d190a8d 100644
--- a/src/ovirtnode/ovirtfunctions.py
+++ b/src/ovirtnode/ovirtfunctions.py
@@ -1597,7 +1597,7 @@
def get_logrotate_size():
size = augtool_get("/files/etc/logrotate.d/ovirt-node/rule/size")
- if not size:
+ if size is None:
return None
if "m" in size.lower():
multiplier = 1024
--
To view, visit https://gerrit.ovirt.org/44409
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia29961324b80bcc9a3593d16c5913105a664ed75
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Anatoly Litovsky <tlitovsk at redhat.com>
More information about the node-patches
mailing list