diff options
| author | zhufl <zhu.fanglei@zte.com.cn> | 2017-01-26 16:26:18 +0800 |
|---|---|---|
| committer | zhufl <zhu.fanglei@zte.com.cn> | 2017-01-26 16:26:18 +0800 |
| commit | 4311dc474eefe7b6bdbc9638f336f7f85d99a271 (patch) | |
| tree | cd06d33a80197ced4f5d020f1685cf44c460a130 /tempest/api/compute/admin/test_security_groups.py | |
| parent | 8bdd42766a7f02180d07e6ab75f0914e5d876a91 (diff) | |
| download | tempest-4311dc474eefe7b6bdbc9638f336f7f85d99a271.tar.gz | |
Use single underscore variable in loop iteration(in compute)
This is to do the same cleanup in identity as
Ie83d6533a6566a22ca78f9ea60a7be1c94531065,
when loop variable is not really used, then use
single underscore as the variable name.
Change-Id: If9129d60f629fb424b809ca5aa4c6b8167a7d16a
Diffstat (limited to 'tempest/api/compute/admin/test_security_groups.py')
| -rw-r--r-- | tempest/api/compute/admin/test_security_groups.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tempest/api/compute/admin/test_security_groups.py b/tempest/api/compute/admin/test_security_groups.py index e329869b5..5e4c63946 100644 --- a/tempest/api/compute/admin/test_security_groups.py +++ b/tempest/api/compute/admin/test_security_groups.py @@ -39,7 +39,7 @@ class SecurityGroupsTestAdminJSON(base.BaseV2ComputeAdminTest): # List of all security groups created security_group_list = [] # Create two security groups for a non-admin tenant - for i in range(2): + for _ in range(2): name = data_utils.rand_name('securitygroup') description = data_utils.rand_name('description') securitygroup = self.client.create_security_group( @@ -50,7 +50,7 @@ class SecurityGroupsTestAdminJSON(base.BaseV2ComputeAdminTest): client_tenant_id = securitygroup['tenant_id'] # Create two security groups for admin tenant - for i in range(2): + for _ in range(2): name = data_utils.rand_name('securitygroup') description = data_utils.rand_name('description') adm_securitygroup = self.adm_client.create_security_group( |
