From 89654eb26feb9737cd79a757641e7335347bdb4a Mon Sep 17 00:00:00 2001 From: dwertent Date: Wed, 6 Oct 2021 18:12:33 +0300 Subject: [PATCH] update exception cluster name compare --- scapepkg/exceptions/exceptionprocessor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scapepkg/exceptions/exceptionprocessor.go b/scapepkg/exceptions/exceptionprocessor.go index eb0528b0..68ec5229 100644 --- a/scapepkg/exceptions/exceptionprocessor.go +++ b/scapepkg/exceptions/exceptionprocessor.go @@ -98,7 +98,7 @@ func hasException(designator *armotypes.PortalDesignator, workload k8sinterface. return false // if designators are empty } - if cluster != "" && cautils.ClusterName != "" && regexCompare(cluster, cautils.ClusterName) { // TODO - where do we receive cluster name from? + if cluster != "" && cautils.ClusterName != "" && !regexCompare(cluster, cautils.ClusterName) { // TODO - where do we receive cluster name from? return false // cluster name does not match }