Skip to content

Commit 7a88613

Browse files
committed
fix(client): adjust indentation in keys_add function
While running deis keys:add , if there are no keys the client is printing No SSH public keys found and throwing an error . Adjusted the indendation , So if client dont find the public keys prints No SSH public keys and prints usage deis keys:add [<key>]
1 parent 66c0da8 commit 7a88613

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

client/deis.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,8 +1225,9 @@ def keys_add(self, args):
12251225
else:
12261226
# check the specified key format
12271227
selected_key = self._parse_key(path)
1228-
if not selected_key:
1229-
return
1228+
if not selected_key:
1229+
print("usage: deis keys:add [<key>]")
1230+
return
12301231
# Upload the key to Deis
12311232
body = {
12321233
'id': selected_key.id,

0 commit comments

Comments
 (0)