Skip to content

Commit f9f6abe

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Fix keypair create --public-key"
2 parents ad3af0e + 21e414d commit f9f6abe

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

openstackclient/compute/v2/keypair.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ def take_action(self, parsed_args):
4848
public_key = parsed_args.public_key
4949
if public_key:
5050
try:
51-
with io.open(os.path.expanduser(parsed_args.public_key),
52-
"rb") as p:
51+
with io.open(os.path.expanduser(parsed_args.public_key)) as p:
5352
public_key = p.read()
5453
except IOError as e:
5554
msg = "Key file %s not found: %s"

0 commit comments

Comments
 (0)