Fix No such file or directory when duplicate a project using Vbox linked clone hdd_info.json

Fix #1185
pull/774/head
Julien Duponchelle 8 years ago
parent ce5ff93242
commit 21ec2a6271
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

@ -357,7 +357,8 @@ class VirtualBoxVM(BaseNode):
with open(hdd_info_file, "r", encoding="utf-8") as f:
hdd_table = json.load(f)
except (ValueError, OSError) as e:
raise VirtualBoxError("Could not read HDD info file: {}".format(e))
# The VM has never be started
return
for hdd_info in hdd_table:
hdd_file = os.path.join(self.working_dir, self._vmname, "Snapshots", hdd_info["hdd"])

Loading…
Cancel
Save