Revision 4f0afaf5 lib/backend.py
b/lib/backend.py | ||
---|---|---|
530 | 530 |
inst_os.path, create_script, instance.name, |
531 | 531 |
real_os_dev.dev_path, real_swap_dev.dev_path, |
532 | 532 |
logfile) |
533 |
env = {'HYPERVISOR': ssconf.SimpleStore().GetHypervisorType()} |
|
533 | 534 |
|
534 |
result = utils.RunCmd(command) |
|
535 |
result = utils.RunCmd(command, env=env)
|
|
535 | 536 |
if result.failed: |
536 | 537 |
logging.error("os create command '%s' returned error: %s, logfile: %s," |
537 | 538 |
" output: %s", command, result.fail_reason, logfile, |
... | ... | |
1486 | 1487 |
logfile) |
1487 | 1488 |
|
1488 | 1489 |
command = '|'.join([utils.ShellQuoteArgs(remotecmd), comprcmd, impcmd]) |
1490 |
env = {'HYPERVISOR': ssconf.SimpleStore().GetHypervisorType()} |
|
1489 | 1491 |
|
1490 |
result = utils.RunCmd(command) |
|
1492 |
result = utils.RunCmd(command, env=env)
|
|
1491 | 1493 |
|
1492 | 1494 |
if result.failed: |
1493 | 1495 |
logging.error("os import command '%s' returned error: %s" |
Also available in: Unified diff