From d8e6135c3a54a6b137bf458356467b6767014365 Mon Sep 17 00:00:00 2001 From: Manik Bindlish Date: Fri, 21 Sep 2018 08:46:53 +0000 Subject: [PATCH] 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 --- tempest/cmd/account_generator.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tempest/cmd/account_generator.py b/tempest/cmd/account_generator.py index 9be8ee260f..e41aa860eb 100755 --- a/tempest/cmd/account_generator.py +++ b/tempest/cmd/account_generator.py @@ -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):