idempotence for master even in swarm cluster

Change-Id: I2f3a2b5590a5875ce9c5a273ec62977da6141c24
diff --git a/docker/swarm.sls b/docker/swarm.sls
index 8440775..992fb71 100644
--- a/docker/swarm.sls
+++ b/docker/swarm.sls
@@ -43,7 +43,7 @@
         {%- if swarm.get('bind', {}).get('address', None) %} --listen-addr {{ swarm.bind.address }}{% if swarm.bind.port is defined %}:{{ swarm.bind.port }}{% endif %}{%- endif %}
     - unless:
       - "test -e /var/lib/docker/swarm/state.json"
-      - "docker node ls | egrep -q '{{ network.hostname }} *Ready *Active *Leader'"
+      - "docker node ls | grep -q '{{ network.hostname }}'"
     - require:
       - service: docker_service