Merge "Fix keypair create --public-key"
This commit is contained in:
commit
f9f6abe564
@ -48,8 +48,7 @@ class CreateKeypair(command.ShowOne):
|
|||||||
public_key = parsed_args.public_key
|
public_key = parsed_args.public_key
|
||||||
if public_key:
|
if public_key:
|
||||||
try:
|
try:
|
||||||
with io.open(os.path.expanduser(parsed_args.public_key),
|
with io.open(os.path.expanduser(parsed_args.public_key)) as p:
|
||||||
"rb") as p:
|
|
||||||
public_key = p.read()
|
public_key = p.read()
|
||||||
except IOError as e:
|
except IOError as e:
|
||||||
msg = "Key file %s not found: %s"
|
msg = "Key file %s not found: %s"
|
||||||
|
Loading…
Reference in New Issue
Block a user