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

Jinja variable 'str object' has no attribute 'paths' #17

Open
blbradley opened this issue Nov 18, 2016 · 1 comment
Open

Jinja variable 'str object' has no attribute 'paths' #17

blbradley opened this issue Nov 18, 2016 · 1 comment

Comments

@blbradley
Copy link

Hello!

With no pillar data, the formula currently fails with this error. Here is the failed state:

       ----------
                 ID: filebeat.config
           Function: file.managed
               Name: /etc/filebeat/filebeat.yml
             Result: False
            Comment: Unable to manage file: Jinja variable 'str object' has no attribute 'paths'
            Started: 22:09:01.721626
           Duration: 18.875 ms
            Changes:   

I found this while applying a test suite for this formula. Test suite and fix coming soon!

@blbradley
Copy link
Author

Here is the issue.

The defaults are strings, and the template tries to use them as a thing with an attribute.

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