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:
parent
2628683881
commit
49a444959d
@ -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}):
|
||||
|
Loading…
x
Reference in New Issue
Block a user