Skip to content

Commit 536c0d9

Browse files
author
Huanxuan Ao
committed
Modify some help and error messages in ec2creds identityv2
Usually we use "(s)" to show about multi deletion in help message. In addition, I think "EC2 credentials" is better than "EC2 keys" in the error message. Change-Id: I6a6461291542701d87a55d9ea0ea1fda6db04601
1 parent 5a21eb2 commit 536c0d9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

openstackclient/identity/v2_0/ec2creds.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def get_parser(self, prog_name):
9494
'access_keys',
9595
metavar='<access-key>',
9696
nargs='+',
97-
help=_('Credentials access keys'),
97+
help=_('Credentials access key(s)'),
9898
)
9999
parser.add_argument(
100100
'--user',
@@ -121,7 +121,7 @@ def take_action(self, parsed_args):
121121
identity_client.ec2.delete(user, access_key)
122122
except Exception as e:
123123
result += 1
124-
LOG.error(_("Failed to delete EC2 keys with "
124+
LOG.error(_("Failed to delete EC2 credentials with "
125125
"access key '%(access_key)s': %(e)s")
126126
% {'access_key': access_key, 'e': e})
127127

0 commit comments

Comments
 (0)