Skip to content

Commit

Permalink
Adjust how add_kubernetes_rule determines filepath
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
yuumasato committed Jun 14, 2024
1 parent 9acfe41 commit 78486d8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion utils/add_kubernetes_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 78486d8

Please sign in to comment.