Skip to content

Commit

Permalink
node: exit with 1 when prompt isn't confirmed
Browse files Browse the repository at this point in the history
  • Loading branch information
bamarni committed Aug 23, 2017
1 parent 30aadd0 commit 372240b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/dcoscli/node/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def _bundle_download(bundle, location):
msg = ('Diagnostics bundle size is {}, '
'are you sure you want to download it?')
if not confirm(msg.format(sizeof_fmt(bundle_size)), False):
return 0
return 1

r = _do_request(url, 'GET', stream=True)
try:
Expand Down

0 comments on commit 372240b

Please sign in to comment.