From e88b62b34bbd7cd0240a8717ba14f31e1856f832 Mon Sep 17 00:00:00 2001 From: Jhon Honce Date: Wed, 25 Aug 2021 11:15:18 -0700 Subject: Fix swagger issue Add special case for op PlayKubeDownLibpod Heuristic for guessing swagger operation id too limited for PlayKubeDownLibpod Signed-off-by: Jhon Honce --- hack/swagger-check | 3 +++ 1 file changed, 3 insertions(+) (limited to 'hack/swagger-check') diff --git a/hack/swagger-check b/hack/swagger-check index fc280c02d..b4481f5bb 100755 --- a/hack/swagger-check +++ b/hack/swagger-check @@ -320,6 +320,9 @@ sub operation_name { if ($action eq 'df') { $action = 'dataUsage'; } + elsif ($action eq "delete" && $endpoint eq "/libpod/play/kube") { + $action = "KubeDown" + } # Grrrrrr, this one is annoying: some operations get an extra 'All' elsif ($action =~ /^(delete|get|stats)$/ && $endpoint !~ /\{/) { $action .= "All"; -- cgit v1.2.3-54-g00ecf