Given a pre-existing credentials.json from the nr1 cli, with profiles containing a lowercase "region": "us" version 0.5.0 executes commands successfully, version 0.6.0 throws a fatal error.
Go Version
go version go1.14 darwin/amd64
Current behavior
Throws a fatal error
Expected behavior
Should accept lowercase values from the region property in credentials.json
Steps To Reproduce
Steps to reproduce the behavior:
Utilizing v0.6.0 of the newrelic-cli...
Running a command (that later succeeds), the CLI errors with:
FATAL[2020-04-06T12:50:39-04:00] unable to create New Relic client with error: unsupported region configured
I then went to create the profile, hoping it would update the region to a correct value:
FATA[0000] profile with name fluffy-waffles already exists
Edited ~/.newrelic/credentials.json and changed the region to US instead of us, and now my command works:
INFO[2020-04-06T12:51:47-04:00] success
Debug Output (if applicable)
If applicable, add associated log output to help explain the problem.
Additional Context
@jthurman42 Verified that v0.5.0 is okay with the lowercase values in credentials.json
References or Related Issues
Are there any other related GitHub issues (open or closed) or Pull Requests that should be linked here?
Does this happen with just any command? I'm having trouble reproducing the issue, using what's in master branch with a lowercase region in my ~/.newrelic/credentials.json file.
Description
Given a pre-existing
credentials.json
from thenr1
cli, with profiles containing a lowercase"region": "us"
version0.5.0
executes commands successfully, version0.6.0
throws a fatal error.Go Version
Current behavior
Throws a fatal error
Expected behavior
Should accept lowercase values from the region property in
credentials.json
Steps To Reproduce
Steps to reproduce the behavior:
Utilizing v
0.6.0
of the newrelic-cli...Running a command (that later succeeds), the CLI errors with:
I then went to create the profile, hoping it would update the region to a correct value:
Edited ~/.newrelic/credentials.json and changed the region to US instead of us, and now my command works:
Debug Output (if applicable)
If applicable, add associated log output to help explain the problem.
Additional Context
@jthurman42 Verified that v
0.5.0
is okay with the lowercase values incredentials.json
References or Related Issues
Are there any other related GitHub issues (open or closed) or Pull Requests that should be linked here?