Closed lastmikoi closed 4 years ago
I had the same problem with salt-ssh and target centos 7.
Your change fixed it. Thanks
Thanks for confirming that, @cschneemann. Would you mind providing that PR, @lastmikoi?
:tada: This issue has been resolved in version 0.8.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Hello,
I'm a relatively new user of Salt and I've been working on a project that involves using this formula. However, it would seem that the relatively recent
domain
part of the formula is not working properly in my environment:OS: CentOS 7 Saltstack:
2016.11.8
with salt-ssh.Indeed, it generates entries such as this one:
As you can see, it doesn't seem to be able to actually grab the domain and instead prints a reference to a function, which changes every run.
I've been trying to tinker a bit with the code and replacing
salt.pillar.get
withsalt['pillar.get']
in https://github.com/saltstack-formulas/hostsfile-formula/blob/master/hostsfile/init.sls#L23 seems to do the trick.If this workaround sounds reasonable I'll go ahead and open a PR with that modification but I am not familiar with best practices when it comes to making formulas so I'd rather get your input on that issue.