commit | 1d78c48d54b42b84fa477570097ca5e8447e604a | [log] [tgz] |
---|---|---|
author | ivan-zhu <bozhu@linux.vnet.ibm.com> | Thu Mar 28 15:55:05 2013 +0800 |
committer | ivan-zhu <bozhu@linux.vnet.ibm.com> | Thu Mar 28 16:03:05 2013 +0800 |
tree | 0b9915f172bc4b201361331f73f7f1699c9693e3 | |
parent | d4e19753962b84cbd6ba172eb11f2a7b659e240c [diff] |
refine _get_isolated_creds when exceptions.Duplicate is thrown in _get_isolated_creds, it should be handled as the following: 1. reuse the existing tenant or user if it's allowed. 2. regenerate tenant name or user name, and try to create it again until it's successful, shouldn't just raise the exception. Change-Id: I69c4026aa4c32d4822342da0ac3f7243c0db6fd4