Przeglądaj źródła

Rename deprecated function

The patch deletes deprecated cmd.run function which actually
was defined in salt 2016 as alias for cmd.shell therefore this
change supports backward compatibility.

Change-Id: Idbbf869dfafb39d3bf90cdcb05e626cd563ce8e2
Related-Prod: 17056
master
Oleh Hryhorov 6 lat temu
rodzic
commit
e1ef5552e8
2 zmienionych plików z 2 dodań i 2 usunięć
  1. +1
    -1
      galera/master.sls
  2. +1
    -1
      galera/slave.sls

+ 1
- 1
galera/master.sls Wyświetl plik

@@ -132,7 +132,7 @@ galera_bootstrap_script:
service: {{ master|yaml }}
- template: jinja

{%- if salt['cmd.run']('test -e /var/lib/mysql/.galera_bootstrap; echo $?') != '0' %}
{%- if salt['cmd.shell']('test -e /var/lib/mysql/.galera_bootstrap; echo $?') != '0' %}

# Enforce config before package installation
galera_pre_config:

+ 1
- 1
galera/slave.sls Wyświetl plik

@@ -130,7 +130,7 @@ galera_bootstrap_script:
- source: salt://galera/files/bootstrap.sh
- template: jinja

{%- if salt['cmd.run']('test -e /var/lib/mysql/.galera_bootstrap; echo $?') != '0' %}
{%- if salt['cmd.shell']('test -e /var/lib/mysql/.galera_bootstrap; echo $?') != '0' %}

# Enforce config before package installation
galera_pre_config:

Ładowanie…
Anuluj
Zapisz