Add missing "cloud" argument to _validate_auth_ksc

The function _validate_auth_ksc was missing a "cloud" parameter so the
exception formatting failed as it could not find that variable.

Change-Id: Ia1caaa29fcb14d6ce7c16de1f78bbcae6c24adb0
This commit is contained in:
Alvaro Lopez Garcia 2016-05-23 11:29:23 +02:00
parent 090a265669
commit fbe1b382df

@ -831,7 +831,7 @@ class OpenStackConfig(object):
config['auth']['token'] = 'notused'
return loading.get_plugin_loader(config['auth_type'])
def _validate_auth_ksc(self, config):
def _validate_auth_ksc(self, config, cloud):
try:
import keystoneclient.auth as ksc_auth
except ImportError:
@ -1005,7 +1005,7 @@ class OpenStackConfig(object):
self.log.debug("Deferring keystone exception: {e}".format(e=e))
auth_plugin = None
try:
config = self._validate_auth_ksc(config)
config = self._validate_auth_ksc(config, cloud)
except Exception:
raise e
else: