Bug Fix : Fail to create Kubernetes VIM

When tacker create Kubernetes VIM, It has an error due to authentication URL.
Because, authentication URL is changed since plugin add 'v3'.

Change-Id: I8d821581b1e8071580601b27564d20bf999f54f0
Closes-Bug: #1829348
This commit is contained in:
hyunsikYang 2019-05-16 20:49:12 +09:00
parent 1fe295ca88
commit 831eae097f
1 changed files with 2 additions and 1 deletions

View File

@ -117,8 +117,9 @@ class NfvoPlugin(nfvo_db_plugin.NfvoPluginDb, vnffg_db.VnffgPluginDbMixin,
LOG.debug('Create vim called with parameters %s',
strutils.mask_password(vim))
vim_obj = vim['vim']
vim_obj['auth_url'] = utils.get_auth_url_v3(vim_obj['auth_url'])
vim_type = vim_obj['type']
if vim_type == 'openstack':
vim_obj['auth_url'] = utils.get_auth_url_v3(vim_obj['auth_url'])
vim_obj['id'] = uuidutils.generate_uuid()
vim_obj['status'] = 'PENDING'
try: