mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-23 17:34:21 +03:00
addhardware: Use same default storage size as create.py (20 GB)
createvol too
This commit is contained in:
parent
9f56641b49
commit
ba0711b0bf
@ -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)
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user