From 78486d86abbd3f9ada529b71e51f318cb52e1c38 Mon Sep 17 00:00:00 2001 From: Watson Sato Date: Fri, 14 Jun 2024 17:22:38 +0200 Subject: [PATCH] Adjust how add_kubernetes_rule determines filepath Depending on the OpenShift resource being checked, `oc` comamnd may make multiple requests. So let's use the last request sent to determine the url of the resource. --- utils/add_kubernetes_rule.py | 1 - 1 file changed, 1 deletion(-) diff --git a/utils/add_kubernetes_rule.py b/utils/add_kubernetes_rule.py index 57a8479e2232..5e8100e38128 100755 --- a/utils/add_kubernetes_rule.py +++ b/utils/add_kubernetes_rule.py @@ -267,7 +267,6 @@ def createPlatformRuleFunc(args): for line in lines: if 'GET' in line: fetch_line = line - break if len(fetch_line) > 0: # extract the object url from the debug line