Closed szwed closed 6 years ago
@szwed, thanks for the report.
@szwed This error looks to me like the first call of salt['network.interfaces']()
is returning a string instead of a dictionary. Therefore the keys you've added to the end of that call can't be retrieved because you can't get
keys from a string.
If you can figure out what the string is that is being returning on that first call in the initial highstate run, that should help determine whether this is a bug or expected behavior.
Otherwise, you may have to pull the value out earlier in the template with conditionals or write a simple custom module to massage the value to an expected format..
I get exactly the same error if I specify highstate as outputter and there are open (GIT-Checkout) changes: salt '*' state.highstate --out highstate
ID: user@hostname:repo
Function: git.latest
Result: None
Comment: Remote 'origin' would be fetched. Repository would be updated from 116d373 to 51dc339.
Started: 15:38:48.638824
Duration: 1080.417 ms
Changes:
----------
revision:
----------
new:
51dc339a155e5586764aae1793044e6a2a05d1d2
old:
116d373122c14081555c1c55130a163e76297ee4
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
When running highstate with the following config first time:
I see these errors:
The DNS entry is created and every next time I run highstate everything looks fine, but the errors are very confusing, especially when creating new environments.
Used Salt: salt 2015.8.1 (Beryllium)