From e2dbc1f692f3422657ba5931b6eb6d43266d684f Mon Sep 17 00:00:00 2001 From: yuyafei Date: Wed, 6 Jul 2016 16:09:19 +0800 Subject: [PATCH] Remove white space between print and () TrivialFix Change-Id: I757a1b513613ef9870e9f8dd1328c7630e4840df --- tempest/cmd/cleanup.py | 8 ++++---- tempest/stress/driver.py | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/tempest/cmd/cleanup.py b/tempest/cmd/cleanup.py index 80de6f5cb6..af86fe34c4 100644 --- a/tempest/cmd/cleanup.py +++ b/tempest/cmd/cleanup.py @@ -106,7 +106,7 @@ class TempestCleanup(command.Command): self._load_json() def _cleanup(self): - print ("Begin cleanup") + print("Begin cleanup") is_dry_run = self.options.dry_run is_preserve = not self.options.delete_tempest_conf_objects is_save_state = False @@ -124,7 +124,7 @@ class TempestCleanup(command.Command): 'is_save_state': is_save_state} tenant_service = cleanup_service.TenantService(admin_mgr, **kwargs) tenants = tenant_service.list() - print ("Process %s tenants" % len(tenants)) + print("Process %s tenants" % len(tenants)) # Loop through list of tenants and clean them up. for tenant in tenants: @@ -155,7 +155,7 @@ class TempestCleanup(command.Command): self._remove_admin_role(tenant_id) def _clean_tenant(self, tenant): - print ("Cleaning tenant: %s " % tenant['name']) + print("Cleaning tenant: %s " % tenant['name']) is_dry_run = self.options.dry_run dry_run_data = self.dry_run_data is_preserve = not self.options.delete_tempest_conf_objects @@ -266,7 +266,7 @@ class TempestCleanup(command.Command): return False def _init_state(self): - print ("Initializing saved state.") + print("Initializing saved state.") data = {} admin_mgr = self.admin_mgr kwargs = {'data': data, diff --git a/tempest/stress/driver.py b/tempest/stress/driver.py index 2beaaa9d14..925d7659ac 100644 --- a/tempest/stress/driver.py +++ b/tempest/stress/driver.py @@ -249,13 +249,13 @@ def stress_openstack(tests, duration, max_runs=None, stop_on_error=False): had_errors = True sum_runs += process['statistic']['runs'] sum_fails += process['statistic']['fails'] - print ("Process %d (%s): Run %d actions (%d failed)" % ( - process['p_number'], - process['action'], - process['statistic']['runs'], - process['statistic']['fails'])) - print ("Summary:") - print ("Run %d actions (%d failed)" % (sum_runs, sum_fails)) + print("Process %d (%s): Run %d actions (%d failed)" % ( + process['p_number'], + process['action'], + process['statistic']['runs'], + process['statistic']['fails'])) + print("Summary:") + print("Run %d actions (%d failed)" % (sum_runs, sum_fails)) if not had_errors and CONF.stress.full_clean_stack: LOG.info("cleaning up")