Skip to content
This repository has been archived by the owner on Aug 9, 2020. It is now read-only.

Commit

Permalink
Fix a bug with creating droplets with SSH keys
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Apr 29, 2016
1 parent 85eef8c commit 3832d3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doapi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '0.1.0'
__version__ = '0.1.1'

from .base import (DOEncoder, Region, Size, Account, Kernel,
DropletUpgrade, Networks, NetworkInterface,
Expand Down
4 changes: 2 additions & 2 deletions doapi/cli/droplet.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ def main(argv=None, parsed=None):
except (IndexError, TypeError):
util.die('{0}: no such SSH key'.format(kname))
try:
key = cache.caches["sshkey"]["fingerprint"][fprint]
except KeyError:
key = cache.caches["sshkey"]["fingerprint"][fprint][0]
except LookupError:
if len(keyparts) > 2 and keyparts[2] != '':
newname = keyparts[2]
else:
Expand Down

0 comments on commit 3832d3f

Please sign in to comment.