Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIR the key in "
salt
vs.salt-ssh
" was thatdefaults.merge
does/did not work onsalt-ssh
. I supposeconfig.get
works just fine, but I'd have to test that.So if we could use
config.get
and stick tograins.filter_by
(instead ofdefaults.merge
) we'd just need one code path without distinguishing betweensalt
andsalt-ssh
.From my tests
salt-ssh
seems to be able to useconfig.get
:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
config.get
wasn't ever the issue itself (forsalt-ssh
) but the problem faced has been merging back the return fromconfig.get
into the rest of the map.defaults.merge
is one way of reliably achieving this but ifgrains.filter_by
can be coerced do it instead, that's even better.