Add lost break into while true loop
Change-Id: I7b4dc2001e07b047964f4ebbbbe0b23db7819566
diff --git a/salt/minion/service.sls b/salt/minion/service.sls
index ca40863..5befc0c 100644
--- a/salt/minion/service.sls
+++ b/salt/minion/service.sls
@@ -72,7 +72,7 @@
{#- Restart salt-minion if needed but after all states are executed #}
salt_minion_service_restart:
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
- bg: true
- require: