Type errors in credential when do the actions like 'create, list and put'.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
Fix Released
|
Undecided
|
yangweiwei |
Bug Description
Now, keystone has supported serverl auth method, like totp.
Before we use this method, we should create the credential first. And we should create it with type like 'totp'. But now we cannot create credential with this method. Also, I think the type should not have constrains. We can create any type in keystone project. So, we should do these actions too. The type would be more. We cannot control it.
[root@test ~]# openstack credential create test GEZDGNBVGY3TQOJ
usage: openstack credential create [-h] [-f {json,shell,
openstack credential create: error: argument --type: invalid choice: u'totp' (choose from 'ec2', 'cert')
[root@test ~]# openstack credential list --type totp
usage: openstack credential list [-h] [-f {csv,json,
openstack credential list: error: argument --type: invalid choice: u'totp' (choose from 'ec2', 'cert')
[root@test ~]# openstack credential list
+------
| ID | Type | User ID | Data | Project ID |
+------
| 09f91cc62fd742e
| 340175cc4ca94b6
| 346bbabc80684a7
| a7bfd674fd444ec
| b1e90c2657cf499
| f58ca9d328124e8
+------
Changed in python-openstackclient: | |
assignee: | nobody → yangweiwei (496176919-6) |
https:/ /review. openstack. org/#/c/ 519254/