[node-patches] Change in ovirt-node[master]: installer: make sure data size could be setup "0"

hadong0720 at gmail.com hadong0720 at gmail.com
Mon Nov 4 03:35:27 UTC 2013


hadong has uploaded a new change for review.

Change subject: installer: make sure data size could be setup "0"
......................................................................

installer: make sure data size could be setup "0"

Previously when users want setup data_size as "0" to disable
data partition, it will create data partition with remaining
free space.It wasn't what we expect results.
Now we could setup data_size as "0" to disable
data partition.

Change-Id: I3445acb336116755e5c22302586171b2b44f1acc
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1026138
Signed-off-by: hadong <hadong0720 at gmail.com>
---
M src/ovirt/node/installer/core/progress_page.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/39/20839/1

diff --git a/src/ovirt/node/installer/core/progress_page.py b/src/ovirt/node/installer/core/progress_page.py
index baf4960..92304c6 100644
--- a/src/ovirt/node/installer/core/progress_page.py
+++ b/src/ovirt/node/installer/core/progress_page.py
@@ -207,7 +207,7 @@
             # Data size get's a special handling because it grabs the
             # remaining space
             data_size = cfg.get("storage.data_size", "-1")
-            data_size = data_size if int(data_size) > 0 else "-1"
+            data_size = data_size if int(data_size) >= 0 else "-1"
             self.logger.debug("Using a data_size of %s" % data_size)
 
             model = defaults.Installation()


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3445acb336116755e5c22302586171b2b44f1acc
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: hadong <hadong0720 at gmail.com>



More information about the node-patches mailing list