ui: clone: Delay error if default storage doesn't have enough space
Just ignore the error populating the initial paths, otherwise we can't even open the dialog
This commit is contained in:
parent
b6630c2a63
commit
1ac02d2ade
|
@ -590,7 +590,11 @@ class vmmCloneVM(vmmGObjectUI):
|
|||
skip_targets.append(target)
|
||||
|
||||
self.clone_design.skip_target = skip_targets
|
||||
self.clone_design.clone_paths = new_disks
|
||||
try:
|
||||
self.clone_design.clone_paths = new_disks
|
||||
except Exception, e:
|
||||
# Just log the error and go on. The UI will fail later if needed
|
||||
logging.debug("Error setting clone_paths: %s", str(e))
|
||||
|
||||
# If any storage cannot be cloned or shared, don't allow cloning
|
||||
clone = True
|
||||
|
|
Loading…
Reference in New Issue