2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-25 14:50:24 +00:00

Add line wrap to usage error

It mixed output with next prompt, which is ugly
This commit is contained in:
Jarrod Johnson 2018-01-24 13:42:13 -05:00
parent 2628683881
commit 49a444959d

View File

@ -64,7 +64,7 @@ def attach_media(noderange, media):
global exitcode
session = client.Command()
if ':' not in media:
sys.stderr.write('Full URL required for attach')
sys.stderr.write('Full URL required for attach\n')
sys.exit(1)
resource = '/noderange/{0}/media/attach'.format(noderange)
for res in session.update(resource, {'url': media}):