Fix issue with system_ready_for_rapid file
[samplevnf.git] / VNFs / DPPD-PROX / helper-scripts / rapid / prox_ctrl.py
index 0288ce9..8754ebc 100644 (file)
@@ -47,8 +47,10 @@ class prox_ctrl(object):
                 on %s, attempt: %d" % (self._ip, attempts))
         while True:
             try:
-                self.run_cmd('test -e /opt/rapid/system_ready_for_rapid')
-                break
+                if (self.run_cmd('test -e /opt/rapid/system_ready_for_rapid \
+                        && echo exists')):
+                    break
+                time.sleep(2)
             except RuntimeWarning as ex:
                 RapidLog.debug("RuntimeWarning %d:\n%s"
                     % (ex.returncode, ex.output.strip()))