Merge "Replace deprecated Salt docker state with docker_image"
diff --git a/aptly/publisher.sls b/aptly/publisher.sls
index 1cede8d..a286125 100644
--- a/aptly/publisher.sls
+++ b/aptly/publisher.sls
@@ -26,7 +26,11 @@
 {% set registry = publisher.source.registry + "/" if publisher.source.registry is defined else "" %}
 
 {{ publisherImage[0] }}:
+{%- if grains['saltversioninfo'] < [2017, 7] %}
   dockerng.image_present:
+{%- else %}
+  docker_image.present:
+{%- endif %}
     - name: {{ registry }}{{ publisherImage[0] }}:{{ publisherImageTag}}
       force: true
     - require_in: