summaryrefslogtreecommitdiff
path: root/openstackclient/identity
diff options
context:
space:
mode:
authorHuanxuan Ao <huanxuan.ao@easystack.cn>2016-07-12 15:23:47 +0800
committerHuanxuan Ao <huanxuan.ao@easystack.cn>2016-07-12 15:55:33 +0800
commit536c0d9dea12b148b379d795c174a1eee8cdc0bd (patch)
tree01c39a1b651009f1bcbb4a0edf2b9d6bc2f89642 /openstackclient/identity
parent5a21eb25558c4820bdf1eec3f0d25fca00e7fd24 (diff)
downloadpython-openstackclient-536c0d9dea12b148b379d795c174a1eee8cdc0bd.tar.gz
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
Diffstat (limited to 'openstackclient/identity')
-rw-r--r--openstackclient/identity/v2_0/ec2creds.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/openstackclient/identity/v2_0/ec2creds.py b/openstackclient/identity/v2_0/ec2creds.py
index 058b5772..4873cd55 100644
--- a/openstackclient/identity/v2_0/ec2creds.py
+++ b/openstackclient/identity/v2_0/ec2creds.py
@@ -94,7 +94,7 @@ class DeleteEC2Creds(command.Command):
'access_keys',
metavar='<access-key>',
nargs='+',
- help=_('Credentials access keys'),
+ help=_('Credentials access key(s)'),
)
parser.add_argument(
'--user',
@@ -121,7 +121,7 @@ class DeleteEC2Creds(command.Command):
identity_client.ec2.delete(user, access_key)
except Exception as e:
result += 1
- LOG.error(_("Failed to delete EC2 keys with "
+ LOG.error(_("Failed to delete EC2 credentials with "
"access key '%(access_key)s': %(e)s")
% {'access_key': access_key, 'e': e})