diff options
Diffstat (limited to 'test/security')
-rwxr-xr-x | test/security/check_for_ingress_and_nodeports.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/security/check_for_ingress_and_nodeports.py b/test/security/check_for_ingress_and_nodeports.py index 8b3e84a6d..27066bf00 100755 --- a/test/security/check_for_ingress_and_nodeports.py +++ b/test/security/check_for_ingress_and_nodeports.py @@ -79,7 +79,7 @@ def find_ingress_ports(v1): https_port = 0 for item in svc.items: if item.metadata.name == K8S_INGRESS_NS: - for pinfo in item.spec.ports: + for pinfo in item.spec.ports: if pinfo and pinfo.name == 'http': http_port = pinfo.node_port elif pinfo and pinfo.name == 'https': @@ -263,4 +263,4 @@ if __name__ == "__main__": v1c = client.Configuration() if args.scan_nodeport: check_onap_ports() elif args.scan_ingress: check_onap_ingress() - else: onap_list_all()
\ No newline at end of file + else: onap_list_all() |