Open myii opened 5 years ago
looks like i'm able to replicate this error running the following:
cd /srv/salt
git clone https://github.com/saltstack-formulas/redis-formula.git .
salt-ssh '*' state.sls redis test=True -ltrace > /tmp/test 2>&1
and i see - Rendering SLS 'base:redis.common' failed: Jinja variable 'dict object' has no attribute 'pkg_name'
looks like we need to get this fixed up thanks
@Ch3LL Thanks for the review and confirmation.
and i see
- Rendering SLS 'base:redis.common' failed: Jinja variable 'dict object' has no attribute 'pkg_name'
Yes, as a symptom of the merge not taking place, the other YAML files are not merged into the map, leading to missing attributes as shown in the following two comments:
For anyone stumbling on this: You can use slsutil.merge
to do exactly the same thing.
@yuriks Thanks for sharing that. Actually, we've got an active PR that proposes the same thing:
@yuriks looks like slsutil.merge isn't working in the salt-ssh situation too
just got bit by this as well.
Description of Issue/Question
SaltStack-Formulas has started to adopt using
defaults.merge
inmap.jinja
, for example in thesalt-formula
.There are now two reports that this isn't working when using
salt-ssh
. Both with the same error:This is an unfortunate development, since we're making a concerted effort to improve the quality and usefulness of SaltStack-Formulas in general. For reference:
Setup
The
redis-formula
issue has full details.Steps to Reproduce Issue
Covered in the issue above.
Versions Report
Covered in the issue above. Also supplied in the
openssh-formula
pull comment.