Return the working directory of a Qemu VM

This commit is contained in:
Julien Duponchelle committed 2015-06-25 09:53:16 +02:00
1 parent d9745644cd
commit 2b36746d52
3 files changed
+8 -2

No files matched your search

+2 -1
View File
@@ -1229,7 +1229,8 @@ class QemuVM(BaseVM):
def __json__(self):
answer = {
"project_id": self.project.id,
"vm_id": self.id
"vm_id": self.id,
"vm_directory": self.working_dir
}
# Qemu has a long list of options. The JSON schema is the single source of information
for field in QEMU_OBJECT_SCHEMA["required"]: