New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stacktrace when fetching directories using s3 module #13731

Closed
ryan-lane opened this Issue Jun 25, 2014 · 1 comment

Comments

Projects
None yet
2 participants
@ryan-lane
Contributor

ryan-lane commented Jun 25, 2014

[ERROR   ] An un-handled exception was caught by salt's global exception handler:
AttributeError: 'CaseInsensitiveDict' object has no attribute 'headers'
Traceback (most recent call last):
  File "/usr/bin/salt-call", line 11, in <module>
    salt_call()
  File "/usr/lib/python2.7/dist-packages/salt/scripts.py", line 128, in salt_call
    client.run()
  File "/usr/lib/python2.7/dist-packages/salt/cli/__init__.py", line 398, in run
    caller.run()
  File "/usr/lib/python2.7/dist-packages/salt/cli/caller.py", line 186, in run
    ret = self.call()
  File "/usr/lib/python2.7/dist-packages/salt/cli/caller.py", line 91, in call
    ret['return'] = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/salt/modules/s3.py", line 154, in get
    verify_ssl=verify_ssl)
  File "/usr/lib/python2.7/dist-packages/salt/utils/s3.py", line 220, in query
    for header in result.headers.headers:

When I change result.headers.headers to result.headers, I get headers back (which also isn't what I'd expect. I'd expect a list of contents, or an option to recursively download the directory).

@basepi

This comment has been minimized.

Member

basepi commented Jun 27, 2014

Looks like you got this fixed! Thanks @ryan-lane.

@basepi basepi closed this Jun 27, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment