Skip to content

Commit 8c9a8ac

Browse files
author
Matthew Fisher
committed
fix(client): make --auth optional
If --auth was not supplied previously, the code for clusters:update would break because it was supplied a NoneType when opening the file. Skipping the code block when --auth is not supplied fixes this issue.
1 parent affe2d5 commit 8c9a8ac

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
@@ -1019,7 +1019,7 @@ def clusters_update(self, args):
10191019
body = {}
10201020
for k, arg in (('domain', '--domain'), ('hosts', '--hosts'),
10211021
('auth', '--auth'), ('type', '--type')):
1022-
if k == 'auth' :
1022+
if k == 'auth' and args.get('--auth') is not None:
10231023
auth_path = os.path.expanduser(args['--auth'])
10241024
if not os.path.exists(auth_path):
10251025
print('Path to authentication credentials does not exist: {}'.format(auth_path))

0 commit comments

Comments
 (0)