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:
Cole Robinson 2017-03-06 15:54:51 -05:00
parent b6630c2a63
commit 1ac02d2ade
1 changed files with 5 additions and 1 deletions

View File

@ -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