Skip to content

Commit bc719b7

Browse files
author
Matthew Fisher
committed
Merge pull request #1456 from deis/1454-fix-auth-option
fix(client): make --auth optional
2 parents 79edc02 + 8c9a8ac commit bc719b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client/deis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ def clusters_update(self, args):
10221022
body = {}
10231023
for k, arg in (('domain', '--domain'), ('hosts', '--hosts'),
10241024
('auth', '--auth'), ('type', '--type')):
1025-
if k == 'auth' :
1025+
if k == 'auth' and args.get('--auth') is not None:
10261026
auth_path = os.path.expanduser(args['--auth'])
10271027
if not os.path.exists(auth_path):
10281028
print('Path to authentication credentials does not exist: {}'.format(auth_path))

0 commit comments

Comments
 (0)