We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f0bb9fc + e40d0aa commit 5cf4048Copy full SHA for 5cf4048
1 file changed
client/deis.py
@@ -968,6 +968,9 @@ def keys_add(self, args):
968
if not path:
969
ssh_dir = os.path.expanduser('~/.ssh')
970
pubkeys = glob.glob(os.path.join(ssh_dir, '*.pub'))
971
+ if not pubkeys:
972
+ print('No SSH public keys found')
973
+ return
974
print('Found the following SSH public keys:')
975
for i, k in enumerate(pubkeys):
976
key = k.split(os.path.sep)[-1]
0 commit comments