You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a custom state with a big number of minion in targets.
My goal is that I try to extract only the states changed to avoid a big output (so to summarize equivalent to --state-output=mixed --state-verbose=false with salt).
## Tried with several client also like local_async, sync, etc.. (but outputer need to be json)
$ pepper --fail-any-none --non-interactive -o json "*" state.sls custom | pepper_format
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 137 column 1 (char 6871)
## Extracting only one entry (issue related to the fact it's own json by minion
$ pepper --fail-any-none --non-interactive -o json "minion1" state.sls custom | pepper_format
ret = json.load(sys.stdin)['return'][0]
KeyError: 'return'
Do you have an idea how to fix it or if it's planned to be implemented in pepper directly?
Best regards,
The text was updated successfully, but these errors were encountered:
Hi,
I have a custom state with a big number of minion in targets.
My goal is that I try to extract only the states changed to avoid a big output (so to summarize equivalent to --state-output=mixed --state-verbose=false with salt).
After checks, I found: #3 and especially https://gist.github.com/bbinet/d87bf2571652e4dec68df6b280b2af9d done by @bbinet but nothing works:
Do you have an idea how to fix it or if it's planned to be implemented in pepper directly?
Best regards,
The text was updated successfully, but these errors were encountered: