Skip to content

Commit

Permalink
Fix swagger issue
Browse files Browse the repository at this point in the history
Add special case for op PlayKubeDownLibpod Heuristic for guessing swagger operation id too limited for PlayKubeDownLibpod

Signed-off-by: Jhon Honce <[email protected]>
  • Loading branch information
jwhonce authored and baude committed Aug 25, 2021
1 parent 1e17692 commit e88b62b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hack/swagger-check
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit e88b62b

Please sign in to comment.