Add newline to strings in stdout/stderr.write()
Function stdout/stderr.write() can't break line automatically. Change-Id: I903c2d1cc1a669adb6be5aa4eb783d3b9943e685
This commit is contained in:
parent
93db7f58ed
commit
54e81a9984
@ -142,7 +142,7 @@ class SetQuota(command.Command):
|
||||
|
||||
if (compute_kwargs == {} and volume_kwargs == {}
|
||||
and network_kwargs == {}):
|
||||
sys.stderr.write("No quotas updated")
|
||||
sys.stderr.write("No quotas updated\n")
|
||||
return
|
||||
|
||||
if parsed_args.project:
|
||||
|
@ -1464,7 +1464,7 @@ class ShowServer(command.ShowOne):
|
||||
if parsed_args.diagnostics:
|
||||
(resp, data) = server.diagnostics()
|
||||
if not resp.status_code == 200:
|
||||
sys.stderr.write(_("Error retrieving diagnostics data"))
|
||||
sys.stderr.write(_("Error retrieving diagnostics data\n"))
|
||||
return ({}, {})
|
||||
else:
|
||||
data = _prep_server_detail(compute_client, server)
|
||||
|
@ -101,7 +101,7 @@ class SetConsumer(command.Command):
|
||||
kwargs['description'] = parsed_args.description
|
||||
|
||||
if not len(kwargs):
|
||||
sys.stdout.write('Consumer not updated, no arguments present')
|
||||
sys.stdout.write('Consumer not updated, no arguments present\n')
|
||||
return
|
||||
|
||||
consumer = identity_client.oauth1.consumers.update(
|
||||
|
@ -164,7 +164,7 @@ class SetDomain(command.Command):
|
||||
kwargs['enabled'] = False
|
||||
|
||||
if not kwargs:
|
||||
sys.stdout.write("Domain not updated, no arguments present")
|
||||
sys.stdout.write("Domain not updated, no arguments present\n")
|
||||
return
|
||||
identity_client.domains.update(domain.id, **kwargs)
|
||||
|
||||
|
@ -213,7 +213,7 @@ class SetEndpoint(command.Command):
|
||||
if (not parsed_args.interface and not parsed_args.url
|
||||
and not parsed_args.service and not parsed_args.region
|
||||
and not parsed_args.enabled and not parsed_args.disabled):
|
||||
sys.stdout.write("Endpoint not updated, no arguments present")
|
||||
sys.stdout.write("Endpoint not updated, no arguments present\n")
|
||||
return
|
||||
|
||||
service_id = None
|
||||
|
@ -318,7 +318,7 @@ class SetGroup(command.Command):
|
||||
kwargs['description'] = parsed_args.description
|
||||
|
||||
if not len(kwargs):
|
||||
sys.stderr.write("Group not updated, no arguments present")
|
||||
sys.stderr.write("Group not updated, no arguments present\n")
|
||||
return
|
||||
identity_client.groups.update(group.id, **kwargs)
|
||||
|
||||
|
@ -165,7 +165,7 @@ class SetServiceProvider(command.Command):
|
||||
parsed_args.service_provider_url,
|
||||
parsed_args.auth_url)):
|
||||
sys.stdout.write("Service Provider not updated, no arguments "
|
||||
"present")
|
||||
"present\n")
|
||||
return (None, None)
|
||||
|
||||
service_provider = federation_client.service_providers.update(
|
||||
|
Loading…
x
Reference in New Issue
Block a user