Commit f6ba09d7 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review

Merge "Remove unnecessary output"

parents c9c26afd 006d33e1
......@@ -131,7 +131,7 @@ class CreateCommand(BlazarCommand, show.ShowOne):
self.format_output_data(data)
if data:
print(self.app.stdout, 'Created a new %s:' % self.resource)
print('Created a new %s:' % self.resource, file=self.app.stdout)
else:
data = {'': ''}
return zip(*sorted(six.iteritems(data)))
......@@ -169,8 +169,8 @@ class UpdateCommand(BlazarCommand):
res_id = parsed_args.id
resource_manager = getattr(blazar_client, self.resource)
resource_manager.update(res_id, **body)
print(self.app.stdout, 'Updated %s: %s' % (self.resource,
parsed_args.id))
print('Updated %s: %s' % (self.resource, parsed_args.id),
file=self.app.stdout)
return
......@@ -203,8 +203,8 @@ class DeleteCommand(BlazarCommand):
else:
res_id = parsed_args.id
resource_manager.delete(res_id)
print(self.app.stdout, 'Deleted %s: %s' % (self.resource,
parsed_args.id))
print('Deleted %s: %s' % (self.resource, parsed_args.id),
file=self.app.stdout)
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment