Fix checking aptly-api

Change-Id: I7b4a8d3fcc6064fb3124d7fcb54987fd7ca7922b
diff --git a/cicd-lab-pipeline.groovy b/cicd-lab-pipeline.groovy
index 464da3a..42f998d 100644
--- a/cicd-lab-pipeline.groovy
+++ b/cicd-lab-pipeline.groovy
@@ -150,7 +150,7 @@
                 // Aptly
                 timeout(10) {
                     println "Waiting for Aptly to come up.."
-                    salt.cmdRun(saltMaster, 'I@aptly:server', 'while true; do curl -svf http://172.16.10.254:8084 >/dev/null && break; done')
+                    salt.cmdRun(saltMaster, 'I@aptly:server', 'while true; do curl -svf http://172.16.10.254:8084/api/version >/dev/null && break; done')
                 }
                 salt.enforceState(saltMaster, 'I@aptly:server', 'aptly', true)