Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

glacier command exits 0 after displaying usage due to being run with parameters intended for glacier-cli #2942

Open
joeyh opened this issue Feb 6, 2015 · 0 comments

Comments

@joeyh
Copy link

joeyh commented Feb 6, 2015

Both boto and glacier-cli provide a glacier command. These commands have different syntaxes, which are not compatable. If a program is expecting to talk to glacier-cli and ends up taking to boto's glacier, it might run it with parameters like "archive upload --name foo vault file".

Unfortunately, boto's glacier program will respond by outputting usage, not uploading the file and exiting 0. Which is very much the wrong exit status.

The user could potentially lose data this way. Please make the glacier command exit nonzero if it's passed parameters it does not expect.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant