aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYang Xu <yang.xu3@huawei.com>2019-04-25 00:51:53 +0000
committerGerrit Code Review <gerrit@onap.org>2019-04-25 00:51:53 +0000
commit6eaaedc4d320b4e032beb958123ee00f5cf9a7a1 (patch)
tree4ce838608159f0a5f71f2ec8ea22890674e4d6a3
parenta722a85525a880077b9df91f75e6c62d060d7c17 (diff)
parent92ede49fd4596af25e97365fe4cc6ac08b791f78 (diff)
Merge "Make the script working on Dublin release"
-rwxr-xr-xtest/security/check_for_http_endpoints.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/security/check_for_http_endpoints.sh b/test/security/check_for_http_endpoints.sh
index 37e55da2b..c0da42858 100755
--- a/test/security/check_for_http_endpoints.sh
+++ b/test/security/check_for_http_endpoints.sh
@@ -47,7 +47,7 @@ SVCS=`awk '{print $2}' <<<"$PORTS_SVCS"`
PORT_LIST=`tr "\\n" "," <<<"$PORTS" | sed 's/,$//'; echo ''`
# Get IP addres of some cluster node
-K8S_NODE=`kubectl describe nodes \`kubectl get nodes | grep -v NAME | head -n 1 | awk '{print $1}'\` | grep ExternalIP | awk '{print $2}'`
+K8S_NODE=`kubectl describe nodes \`kubectl get nodes | grep -v NAME | head -n 1 | awk '{print $1}'\` | grep external-ip | awk '{print $2}'`
# perform scan
SCAN_RESULT=`nmap $K8S_NODE -sV -p $PORT_LIST 2>/dev/null | grep \tcp`