Revision 896a03f6 lib/backend.py

b/lib/backend.py
966 966
  logfile = _InstanceLogName("add", instance.os, instance.name)
967 967

  
968 968
  result = utils.RunCmd([inst_os.create_script], env=create_env,
969
                        cwd=inst_os.path, output=logfile,)
969
                        cwd=inst_os.path, output=logfile, reset_env=True)
970 970
  if result.failed:
971 971
    logging.error("os create command '%s' returned error: %s, logfile: %s,"
972 972
                  " output: %s", result.cmd, result.fail_reason, logfile,
......
999 999
                             "%s-%s" % (old_name, instance.name))
1000 1000

  
1001 1001
  result = utils.RunCmd([inst_os.rename_script], env=rename_env,
1002
                        cwd=inst_os.path, output=logfile)
1002
                        cwd=inst_os.path, output=logfile, reset_env=True)
1003 1003

  
1004 1004
  if result.failed:
1005 1005
    logging.error("os create command '%s' returned error: %s output: %s",
......
2752 2752

  
2753 2753
  validate_env = OSCoreEnv(osname, tbv, osparams)
2754 2754
  result = utils.RunCmd([tbv.verify_script] + checks, env=validate_env,
2755
                        cwd=tbv.path)
2755
                        cwd=tbv.path, reset_env=True)
2756 2756
  if result.failed:
2757 2757
    logging.error("os validate command '%s' returned error: %s output: %s",
2758 2758
                  result.cmd, result.fail_reason, result.output)

Also available in: Unified diff