Permalink
Browse files

Merge pull request #90 from alxbl/fix-env-token

fix: Allow merging of settings when token is not present in config
  • Loading branch information...
Dorthu committed Jan 29, 2019
2 parents c799e0e + 632bad9 commit 9c408649e96f25d83ec9505397b3b23fb7080931
Showing with 1 addition and 1 deletion.
  1. +1 −1 linodecli/configuration.py
@@ -63,7 +63,7 @@ def update(self, namespace, username=None):
if not username:
username = "DEFAULT"

if not self.config.has_option(username, 'token'):
if not self.config.has_option(username, 'token') and not os.environ.get(ENV_TOKEN_NAME, None):
print("User {} is not configured.".format(username))
sys.exit(1)

0 comments on commit 9c40864

Please sign in to comment.