Fixing onos loader script
Change-Id: I939b43d4de2443ebdb15092d4a421741f12d5b06
diff --git a/voltha-infra/Chart.yaml b/voltha-infra/Chart.yaml
index 398fc80..0569ae9 100644
--- a/voltha-infra/Chart.yaml
+++ b/voltha-infra/Chart.yaml
@@ -29,7 +29,7 @@
name: voltha-infra
appVersion: "1.0"
-version: 0.1.4
+version: 0.1.5
dependencies:
- name: onos-classic
diff --git a/voltha-infra/templates/onos-config-loader-script.yaml b/voltha-infra/templates/onos-config-loader-script.yaml
index 891c400..fd74f58 100644
--- a/voltha-infra/templates/onos-config-loader-script.yaml
+++ b/voltha-infra/templates/onos-config-loader-script.yaml
@@ -23,6 +23,7 @@
# a POST to a non ready netcfg return 207 in case of failure, while a GET returns 404,
# check the apps key is ready to accept data before sending them
+
until curl --fail -sSL --user {{ .Values.onos.username }}:{{ .Values.onos.password }} -X GET -H 'Accept: application/json' "http://{{ .Release.Name }}-onos-classic-hs:8181/onos/v1/network/configuration/apps";
do
echo -e "Waiting for netcfg to be active";