diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-03-30 23:34:14 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-03-30 23:34:14 +0000 |
| commit | 6643abc49899a75c958bdd9876f6dd3b8a135a95 (patch) | |
| tree | 726c566b95ee4698c7d87e307007b2236777cb37 /bin | |
| parent | a4dd6b6f06d222f49bd0d2582dfe0f2925a1638f (diff) | |
| parent | 283ea4a16622287c476141736d373405119f3e79 (diff) | |
Merge "Export user id as password to keystone when using noauth"
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/nova-manage | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/bin/nova-manage b/bin/nova-manage index 65082ba90..462b9d5e2 100755 --- a/bin/nova-manage +++ b/bin/nova-manage @@ -1542,16 +1542,23 @@ class ExportCommands(object): am = manager.AuthManager() for user in am.get_users(): + # NOTE(vish): Deprecated auth uses an access key, no auth uses a + # the user_id in place of it. + if FLAGS.auth_strategy == 'deprecated': + access = user.access + else: + access = user.id + user_dict = { 'id': user.id, 'name': user.name, - 'password': user.access, + 'password': access, } output['users'].append(user_dict) ec2_cred = { 'user_id': user.id, - 'access_key': user.access, + 'access_key': access, 'secret_key': user.secret, } output['ec2_credentials'].append(ec2_cred) |
