Closed some-natalie closed 7 years ago
@natalie- Thank you for the PR. Just so I know that we're looking at the same thing, are you getting an error that causes the script to fail, or just a deprecation warning about using expr_form
?
@amendlik It's just clearing up a deprecation warning we found after upgrading to SaltStack 2017.7. Rundeck didn't appear to have any problems with it, but we use the script elsewhere as well to generate a nice YAML inventory.
@natalie- I added some changes to make this change backwards-compatible with 2016.11 and earlier. Could you test this version and let me know the results?
@amendlik Works great! I tested it on some machines running 2017.7 and 2016.11 and it worked fine on both. 👍
After upgrading to Salt 2017.7, this script returns an error message from Salt about using "tgt_type" over "expr_form". Changing this appears to break nothing and the script works as expected.