Skip to content
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

Cannot use "extra_vars" #1

Closed
headcr4sh opened this issue Dec 5, 2017 · 0 comments
Closed

Cannot use "extra_vars" #1

headcr4sh opened this issue Dec 5, 2017 · 0 comments

Comments

@headcr4sh
Copy link

When trying to pass any extra_vars to the "put" step of my Ansible resource, I receive the following error:

Traceback (most recent call last):
  File "/opt/resource/out", line 449, in <module>
    rcode = r.run(os.path.basename(__file__))
  File "/opt/resource/resource.py", line 146, in run
    rcode, response = self.update(self.workfolder, source, params)
  File "/opt/resource/out", line 437, in update
    exitcode, stdout, stats = PlaybookCLI(config, self.logger).run()
  File "/opt/resource/out", line 122, in run
    variable_manager.extra_vars = load_extra_vars(loader=loader, options=extra_vars)
  File "/usr/lib/python2.7/site-packages/ansible/utils/vars.py", line 121, in load_extra_vars
    for extra_vars_opt in options.extra_vars:
AttributeError: 'dict' object has no attribute 'extra_vars'
lunascat added a commit to lunascat/concourse-ansible-resource that referenced this issue Dec 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant