Browse Source

Add lost break into while true loop

Change-Id: I7b4dc2001e07b047964f4ebbbbe0b23db7819566
pr/fix/install_formulas_fix
Filip Pytloun 7 years ago
parent
commit
95ccd0894d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      salt/minion/service.sls

+ 1
- 1
salt/minion/service.sls View File

{#- Restart salt-minion if needed but after all states are executed #} {#- Restart salt-minion if needed but after all states are executed #}
salt_minion_service_restart: salt_minion_service_restart:
cmd.wait: cmd.wait:
- name: 'while true; do salt-call saltutil.running|grep fun: && continue; salt-call --local service.restart {{ minion.service }}; done'
- name: 'while true; do salt-call saltutil.running|grep fun: && continue; salt-call --local service.restart {{ minion.service }}; break; done'
- shell: /bin/bash - shell: /bin/bash
- bg: true - bg: true
- require: - require:

Loading…
Cancel
Save