Remove white space between print and ()

TrivialFix

Change-Id: I757a1b513613ef9870e9f8dd1328c7630e4840df
This commit is contained in:
yuyafei 2016-07-06 16:09:19 +08:00
parent 6afd72d074
commit e2dbc1f692
2 changed files with 11 additions and 11 deletions

View File

@ -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,

View File

@ -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")