File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 162
162
{% - endif %}
163
163
164
164
{#- Add `merge:` option to `salt["config.get"]` if configured #}
165
- {% - if cli in ["minion " , "local " ] and parsed .query_method == "config.get" and config_get_strategy %}
165
+ {% - if cli not in ["ssh " , "unknown " ] and parsed .query_method == "config.get" and config_get_strategy %}
166
166
{% - set query_opts = {
167
167
"merge" : config_get_strategy ,
168
168
"delimiter" : parsed .query_delimiter ,
175
175
~ "'"
176
176
) %}
177
177
{% - else %}
178
- {% - if cli not in ["minion " , "local " ] %}
179
- {% - do salt ["log.error " ](
178
+ {% - if cli in ["ssh " , "unknown " ] %}
179
+ {% - do salt ["log.warning " ](
180
180
log_prefix
181
181
~ "the 'delimiter' and 'merge' options of 'config.get' are skipped when the salt command type is '"
182
182
~ cli
Original file line number Diff line number Diff line change 10
10
{% - set cli = 'minion' %}
11
11
{% - elif opts_cli == 'salt-call' %}
12
12
{% - set cli = 'ssh' if opts_masteropts_cli in ('salt-ssh' , 'salt-master' ) else 'local' %}
13
+ {% - elif opts_cli %}
14
+ {% - set cli = 'api' %}
13
15
{% - else %}
14
16
{% - set cli = 'unknown' %}
15
17
{% - endif %}
You can’t perform that action at this time.
0 commit comments