Commit e008df7d authored by Vladimir's avatar Vladimir
Browse files

fix ignore_cli_errors for snippet and action

parent e0409aaf
Pipeline #31745 passed with stages
in 2 minutes and 13 seconds
......@@ -296,6 +296,7 @@ Ext.define('NOC.sa.runcommands.Controller', {
var makeRequest = function(mode) {
var objects = [];
var config = me.lookupReference('sa-run-commands-command-form').getValues();
var ignore_cli_errors = JSON.stringify(me.lookupReference('ignore-cli-errors').getValue());
me.getStore('selectedStore').each(function(record) {
objects.push(record.get('id'));
......@@ -327,7 +328,8 @@ Ext.define('NOC.sa.runcommands.Controller', {
script: 'commands',
args: {
commands: obj[key].split('\n'),
include_commands: true
include_commands: true,
ignore_cli_errors: ignore_cli_errors
}
});
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment