Removing redundant "if test_resource.network" from account_generator.py

There are 2 same if conditions: "if test_resource.network" used together
It creates unnecessary redundancy.
This patch set will correct the code and remove one of them.

Change-Id: I1a452b11255346f997832bf18c2f6afc635d5706
This commit is contained in:
Manik Bindlish 2018-09-21 08:46:53 +00:00
parent 79551e1bed
commit d8e6135c3a
1 changed files with 0 additions and 1 deletions

View File

@ -195,7 +195,6 @@ def dump_accounts(resources, identity_version, account_file):
if test_resource.network:
account['resources'] = {}
if test_resource.network:
account['resources']['network'] = test_resource.network['name']
accounts.append(account)
if os.path.exists(account_file):