Merge "Make '_create_router' function handle Boolean kwargs correctly"

This commit is contained in:
Jenkins 2015-08-08 19:50:33 +00:00 committed by Gerrit Code Review
commit c28c82e8cd

View File

@ -326,7 +326,7 @@ class L3NatTestCaseMixin(object):
data['router']['admin_state_up'] = admin_state_up
for arg in (('admin_state_up', 'tenant_id') + (arg_list or ())):
# Arg must be present and not empty
if kwargs.get(arg):
if arg in kwargs:
data['router'][arg] = kwargs[arg]
router_req = self.new_create_request('routers', data, fmt)
if set_context and tenant_id: