Skip to content

Commit

Permalink
bin/glacier uses the file name archive description when uploading an …
Browse files Browse the repository at this point in the history
…archive
  • Loading branch information
Francesco Malandrino committed Aug 19, 2014
1 parent 3cbbc21 commit dd58146
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/glacier
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import sys

from boto.glacier import connect_to_region
from getopt import getopt, GetoptError
from os.path import isfile
from os.path import isfile, basename


COMMANDS = ('vaults', 'jobs', 'upload')
Expand Down Expand Up @@ -112,7 +112,7 @@ def upload_files(vault_name, filenames, region, access_key=None, secret_key=None
for filename in filenames:
if isfile(filename):
print('Uploading %s to %s' % (filename, vault_name))
glacier_vault.upload_archive(filename)
glacier_vault.upload_archive(filename, description = basename(filename))


def main():
Expand Down

0 comments on commit dd58146

Please sign in to comment.