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

One or more undefined variables: 'unicode object' has no attribute 'name' #3

Open
sebastianwr opened this issue Dec 8, 2015 · 1 comment

Comments

@sebastianwr
Copy link

When executing the aem_packages_common role, the definition of packages_common and the usage in the task don't match.

It looks like the task expects something like this:

packages_common:
  - { name: "my-package-1.0", file: "my-package-1.0.zip" }
  - ...

whereas the sample (and in my config) they are defined simply as this:

packages_common:
  - aem-5.6.1-service-pack-2-1.0.zip

This results in the following error when executing the playbook:

TASK: [aem_packages_common | Upload common packages] ************************** 
fatal: [xx.xx.xx.xx] => One or more undefined variables: 'unicode object' has no attribute 'name'
...
@pmarkham
Copy link
Owner

pmarkham commented Dec 8, 2015

I did change the module at some stage, it looks like I forgot to update the sample to match. I'll fix it and push a new version.

You need to specify name at a minimum; if the file name doesn't match the package name, you also need to specify file. So, something like this:

packages_common:
    # package name and file name the same
    - name: 'cq-6.0.0-hotfix-5869-1.0.2.zip'
    # package name and file name different
    - name: 'cq-6.0.0-hotfix-5918-wrapper-1.6.zip'
      file: 'cq-6.0.0-hotfix-5918-1.6.zip'

Thanks for the feedback.

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

2 participants