diff options
author | juraj.linkes <jlinkes@cisco.com> | 2017-10-13 15:23:45 +0200 |
---|---|---|
committer | juraj.linkes <jlinkes@cisco.com> | 2017-10-13 15:23:45 +0200 |
commit | f11dd67c173a7e03f2eb0030cc90c5591f034f73 (patch) | |
tree | b3d7144faed9a9e25772abfe192778c479ea2934 | |
parent | dffcbbf326aa88d98b66a76abcd9a01c5d62bad0 (diff) |
Updated grep regexs for 1710 honeycomb ip and port
Change-Id: I4f1247e9a946e5c11268b3bfac88ec9487fc8782
Signed-off-by: juraj.linkes <jlinkes@cisco.com>
-rwxr-xr-x | scripts/resource_cleanup.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/resource_cleanup.sh b/scripts/resource_cleanup.sh index 1f3388f..e3ff599 100755 --- a/scripts/resource_cleanup.sh +++ b/scripts/resource_cleanup.sh @@ -253,8 +253,8 @@ clean_overcloud_resource() { sleep 1 service honeycomb start &> /dev/null echo "$HOSTNAME: starting honeycomb" - HC_IP=$(grep -r restconf-binding-address /opt/honeycomb/config/ | grep -Eo "$IPV4_REGEX") - HC_PORT=$(grep -r restconf-port /opt/honeycomb/config/ | grep -Eo [0-9]+) + HC_IP=$(grep -rhPo "restconf-binding-address[^0-9]*\K($IPV4_REGEX)" /opt/honeycomb/config/) + HC_PORT=$(grep -rhPo "restconf-port[^0-9]*\K([0-9]*)" /opt/honeycomb/config/) for i in $(seq 1 $FDIO_TIMEOUT) do sleep 1 |