amazon-glacier-cmd-interface
amazon-glacier-cmd-interface copied to clipboard
Better graceful handling of first inventory while no initial generated
[dbadmin@w-db-06 archived_data]$ glacier-cmd inventory DB-2012-01
Traceback (most recent call last):
File "/usr/bin/glacier-cmd", line 8, in
Error handling has been improved; this one is being caught properly in my code (some not being pulled into master yet). You will get the same stack trace when you do glacier-cmd inventory non-existing-vault
.
wouter@acorn:~$ glacier-cmd mkvault new_vault
+-----------+-------------------------------------------------+
| Header | Value |
+-----------+-------------------------------------------------+
| RequestId | DjShPFgvv-hULFSvcDMqtr_cewS60jUPXX4ETyvxMRiJJHY |
| Location | /335522851586/vaults/new_vault |
+-----------+-------------------------------------------------+
wouter@acorn:~$ glacier-cmd inventory new_vault
Checking inventory, please wait.
str: Failed to create a new inventory retrieval job for vault new_vault.
Caused by: 1 exception
|| unicode: Inventory retrieval jobs for vault arn:aws:glacier:us-east-1:335522851586:vaults/new_vault cannot be initiated yet, as Amazon Glacier has not yet generated an initial inventory for this vault.
The only things that I can't manage to get rid of (I also don't know where exactly they come from) are the words str:
and unicode:
. This are the respective string types of these two lines.