Merge "Fix logic in dump_accounts"

This commit is contained in:
Jenkins 2016-01-23 10:45:02 +00:00 committed by Gerrit Code Review
commit 545e8f00d2

View File

@ -390,7 +390,7 @@ def dump_accounts(opts, resources):
'password': user['pass'],
'roles': user['roles']
}
if 'network' or 'router' in user:
if 'network' in user or 'router' in user:
account['resources'] = {}
if 'network' in user:
account['resources']['network'] = user['network']