Skip to content

Commit

Permalink
Make sure the HOME envvar is set in the sync.hp3par driver cli codepath
Browse files Browse the repository at this point in the history
The cli needs the HOME to find the ssl cert reference file. If not set, it
produce a ssl validation error.
  • Loading branch information
cvaroqui committed Jun 22, 2018
1 parent 43dedbe commit 862311d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rcHp3par.py
Expand Up @@ -195,6 +195,8 @@ def cli_cmd(self, cmd, log=False):
if which(self.cli) is None:
raise ex.excError("%s executable not found" % self.cli)

# HOME is needed to locate the ssl cert validation file
os.environ["HOME"] = os.path.expanduser("~root")
os.environ["TPDPWFILE"] = self.pwf
os.environ["TPDNOCERTPROMPT"] = "1"

Expand Down

0 comments on commit 862311d

Please sign in to comment.