Merge "Fix argument list in NeutronClientRemoteWrapper"

This commit is contained in:
Jenkins 2014-10-23 16:32:32 +00:00 committed by Gerrit Code Review
commit 009caf8c4e

View File

@ -102,15 +102,15 @@ class NeutronClientRemoteWrapper(object):
if adapter.host == host]
else:
# need to retrieve or create specific adapter
adapter = self.adapters.get((host, port), None, *args, **kwargs)
adapter = self.adapters.get((host, port), None)
if not adapter:
LOG.debug('Creating neutron adapter for {0}:{1}'
.format(host, port))
qrouter = self.get_router()
kwargs['use_rootwrap'] = use_rootwrap
kwargs['rootwrap_command'] = rootwrap_command
adapter = (
NeutronHttpAdapter(qrouter, host, port,
use_rootwrap=use_rootwrap,
rootwrap_command=rootwrap_command))
NeutronHttpAdapter(qrouter, host, port, *args, **kwargs))
self.adapters[(host, port)] = adapter
adapters = [adapter]