Fix bug in qemu_stdout message

This commit is contained in:
grossmj 2025-04-18 15:19:06 +07:00
parent 355b97398b
commit f6546bf1de
No known key found for this signature in database
GPG Key ID: 1E7DD6DBB53FF3D7

View File

@ -1203,7 +1203,7 @@ class QemuVM(BaseNode):
qemu_stdout += "\n\nTPM error: the project directory is not on the same partition as the root directory which can be a problem when using AppArmor." \
"Please try to execute the following commands on the server:\n\n" \
"echo 'owner {}/** rwk,' | sudo tee /etc/apparmor.d/local/usr.bin.swtpm > /dev/null\n" \
"sudo service apparmor restart".format(os.path.dirname(self.project))
"sudo service apparmor restart".format(os.path.dirname(self.project.path))
self.project.emit("log.error", {"message": "QEMU process has stopped, return code: {}\n{}".format(returncode, qemu_stdout)})
async def stop(self):