diff options
author | Tal Gitelman <tg851x@intl.att.com> | 2017-09-27 19:53:21 +0300 |
---|---|---|
committer | Tal Gitelman <tg851x@intl.att.com> | 2017-09-27 19:53:21 +0300 |
commit | 72fa3d877f5f19ea98e803ea912d3baabd8544c8 (patch) | |
tree | 790ccd2c122f6f4104eb976b12fbe4a45fda13ac /sdc-os-chef/sdc-backend/startup.sh | |
parent | 539703511367eaaaac04b0d997ddf8679e224dfb (diff) |
Fix for normative scripts
Change-Id: I47b419f4f2c65fa90da3fe1d4ffaf7d59ee86c1c
Issue-ID: SDC-410
Signed-off-by: Tal Gitelman <tg851x@intl.att.com>
Diffstat (limited to 'sdc-os-chef/sdc-backend/startup.sh')
-rw-r--r-- | sdc-os-chef/sdc-backend/startup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sdc-os-chef/sdc-backend/startup.sh b/sdc-os-chef/sdc-backend/startup.sh index 98699d9486..a0c237da62 100644 --- a/sdc-os-chef/sdc-backend/startup.sh +++ b/sdc-os-chef/sdc-backend/startup.sh @@ -26,7 +26,7 @@ python /root/chef-solo/cookbooks/sdc-normatives/files/default/check_Backend_Heal # executing the normatives cd /root/chef-solo check_normative="/tmp/check_normative.out" -curl -s -X GET -H "Content-Type: application/json;charset=UTF-8" -H "USER_ID: jh0003" -H "X-ECOMP-RequestID: cbe744a0-037b-458f-aab5-df6e543c4090" -H "Cache-Control: no-cache" -H "Postman-Token: af08ca1c-302f-1431-404f-ed84246e07c9" "http://${HOST_IP}:8080/sdc2/rest/v1/screen" > ${check_normative} +curl -s -X GET -H "Content-Type: application/json;charset=UTF-8" -H "USER_ID: jh0003" -H "X-ECOMP-RequestID: cbe744a0-037b-458f-aab5-df6e543c4090" -H "Cache-Control: no-cache" -H "Postman-Token: af08ca1c-302f-1431-404f-ed84246e07c9" "http://localhost:8080/sdc2/rest/v1/screen" > ${check_normative} echo "normal['HOST_IP'] = \"${HOST_IP}\"" > /root/chef-solo/cookbooks/sdc-normatives/attributes/default.rb resources_len=`cat ${check_normative}| jq '.["resources"]|length'` |