Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supported SLS files #18

Open
rmjstn opened this issue Jan 13, 2017 · 1 comment
Open

Supported SLS files #18

rmjstn opened this issue Jan 13, 2017 · 1 comment

Comments

@rmjstn
Copy link

rmjstn commented Jan 13, 2017

Hi,

I use the plugin via the cmd.run_all method.
I want to call SLS files via the state.sls method, but the output is not supported by SaltJsonReturnHandler.java. For the moment I have defined state.sls as *alwaysSuccessful, but I want to catch errors.
I would like to improve the plugin. Is it the best ways to write a new class SaltStateJsonReturnHandler.java (as SaltJsonReturnHandler.java) that parse state.sls json output ?
I did not succeed to have the same output with stale.sls than with cmd.run_all.

Rémy

@ghost
Copy link

ghost commented Jan 17, 2017

The response from salt modules to the rundeck salt api comes as a boolean, either True or False or nested dict, like stdout, stderr, pid, response code. Either we can change the response output which salt api sends back to rundeck or write new code to handle the response on rundeck level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant