We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ad3af0e + 21e414d commit f9f6abeCopy full SHA for f9f6abe
1 file changed
openstackclient/compute/v2/keypair.py
@@ -48,8 +48,7 @@ def take_action(self, parsed_args):
48
public_key = parsed_args.public_key
49
if public_key:
50
try:
51
- with io.open(os.path.expanduser(parsed_args.public_key),
52
- "rb") as p:
+ with io.open(os.path.expanduser(parsed_args.public_key)) as p:
53
public_key = p.read()
54
except IOError as e:
55
msg = "Key file %s not found: %s"
0 commit comments