addhardware: Use same default storage size as create.py (20 GB)

createvol too
This commit is contained in:
Cole Robinson 2015-09-13 19:30:10 -04:00
parent 9f56641b49
commit ba0711b0bf
3 changed files with 3 additions and 4 deletions

View File

@ -180,7 +180,7 @@ class vmmAddStorage(vmmGObjectUI):
def reset_state(self):
self._update_host_space()
self.widget("storage-create").set_active(True)
self.widget("storage-size").set_value(8)
self.widget("storage-size").set_value(20)
self.widget("storage-entry").set_text("")
self.widget("storage-create-box").set_sensitive(True)

View File

@ -1816,10 +1816,9 @@ class vmmCreate(vmmGObjectUI):
n_cpus = res["n-cpus"]
self.widget("cpus").set_value(n_cpus)
storage_size = 20
if res and res.get("storage"):
storage_size = int(res["storage"]) / (1024 ** 3)
self._addstorage.widget("storage-size").set_value(storage_size)
self._addstorage.widget("storage-size").set_value(storage_size)
# Validation passed, store the install path (if there is one) in
# gsettings

View File

@ -187,7 +187,7 @@ class vmmCreateVolume(vmmGObjectUI):
break
default_alloc = 0
default_cap = 8
default_cap = 20
self.widget("backing-store").set_text("")
alloc = default_alloc