diff --git a/lib/backend.py b/lib/backend.py index 65e8cced8f1cfb4ec04b8778514e6cc4afb69bbf..f54c04191cb91e7d49a58dc23b6b1d58b6096aba 100644 --- a/lib/backend.py +++ b/lib/backend.py @@ -399,11 +399,10 @@ def AddOSToInstance(instance, os_disk, swap_disk): logfile) result = utils.RunCmd(command) - if result.failed: - logger.Error("os create command '%s' returned error: %s" + logger.Error("os create command '%s' returned error: %s, logfile: %s," " output: %s" % - (command, result.fail_reason, result.output)) + (command, result.fail_reason, logfile, result.output)) return False return True