[node-patches] Change in ovirt-node[master]: storage_vol_page:Disable accpet "0" for swap and logging par...

hadong0720 at gmail.com hadong0720 at gmail.com
Thu Sep 26 09:47:20 UTC 2013


hadong has uploaded a new change for review.

Change subject: storage_vol_page:Disable accpet "0" for swap and logging partition
......................................................................

storage_vol_page:Disable accpet "0" for swap and logging partition

Change-Id: I5a9b8db4497f30a19db42ceaa455eeeec28f223b
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1012323
Signed-off-by: hadong <hadong0720 at gmail.com>
---
M src/ovirt/node/installer/core/storage_vol_page.py
1 file changed, 2 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/95/19595/1

diff --git a/src/ovirt/node/installer/core/storage_vol_page.py b/src/ovirt/node/installer/core/storage_vol_page.py
index 91757c6..e27d915 100644
--- a/src/ovirt/node/installer/core/storage_vol_page.py
+++ b/src/ovirt/node/installer/core/storage_vol_page.py
@@ -46,18 +46,17 @@
         return self._model
 
     def validators(self):
-        is_zero = valid.Number(exactly=0)
         min_swap, min_logging = self.__get_min_sizes()
         return {"storage.efi_size":
                 valid.Number(bounds=[0, None]),
                 "storage.root_size":
                 valid.Number(bounds=[0, None]),
                 "storage.swap_size":
-                valid.Number(bounds=[min_swap, None]) | is_zero,
+                valid.Number(bounds=[min_swap, None]),
                 "storage.config_size":
                 valid.Number(bounds=[5, None]),
                 "storage.logging_size":
-                valid.Number(bounds=[min_logging, None]) | is_zero,
+                valid.Number(bounds=[min_logging, None]),
                 "storage.data_size":
                 valid.Number(bounds=[-1, None]),
                 }


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

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