diff options
author | Cole Robinson <crobinso@redhat.com> | 2017-03-06 15:54:51 -0500 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2017-03-06 22:05:34 -0500 |
commit | 1ac02d2adef035124124b1ed3674face8bdce03d (patch) | |
tree | eeb2bb77f8ce6ca92b7961ea415568d05e3d27c5 /virtManager/clone.py | |
parent | b6630c2a637b7f0d89df5c63c018bad9b82613d9 (diff) | |
download | virt-manager-1ac02d2adef035124124b1ed3674face8bdce03d.tar.gz |
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
Diffstat (limited to 'virtManager/clone.py')
-rw-r--r-- | virtManager/clone.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/virtManager/clone.py b/virtManager/clone.py index e3fee0c5..ddc73d8c 100644 --- a/virtManager/clone.py +++ b/virtManager/clone.py @@ -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 |