pivotal-cf / pivnet-cli

CLI to interact with Tanzu Network API V2 interface.
Apache License 2.0
34 stars 27 forks source link

pivnet-cli relies on TMPDIR environment variable? #10

Closed menicosia closed 6 years ago

menicosia commented 7 years ago

This isn't serious, but I noticed that when calling pivnet from a script:

+ TMPDIR=/var/tmp/t
+ pivnet login --api-token=[redacted]
Get https://network.pivotal.io/api/v2/authentication: x509: failed to load system roots and no roots provided; mkdir /var/tmp/t/x509trustpolicy251829511: no such file or directory

I can fix this either by not using the TMPDIR variable, or creating the directory before calling pivnet login, so this isn't an urgent issue for me, more of an FYI for you.

cf-gitbot commented 7 years ago

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/147649705

The labels on this github issue will be updated when the story is started.

pnikonowicz commented 6 years ago

thanks for letting us know :) I suppose the only work around I can think of is to create the the tempDir automatically, but that might have the unintended consequence of using a folder that the user did not intend to be used. I will close this issue for now, but if you disagree or can think of another pressing scenario that may increase the severity of this issue, please let us know.