mirror of
https://github.com/containers/podman.git
synced 2025-07-02 16:57:24 +08:00
Fix swagger issue
Add special case for op PlayKubeDownLibpod Heuristic for guessing swagger operation id too limited for PlayKubeDownLibpod Signed-off-by: Jhon Honce <jhonce@redhat.com>
This commit is contained in:
@ -320,6 +320,9 @@ sub operation_name {
|
|||||||
if ($action eq 'df') {
|
if ($action eq 'df') {
|
||||||
$action = 'dataUsage';
|
$action = 'dataUsage';
|
||||||
}
|
}
|
||||||
|
elsif ($action eq "delete" && $endpoint eq "/libpod/play/kube") {
|
||||||
|
$action = "KubeDown"
|
||||||
|
}
|
||||||
# Grrrrrr, this one is annoying: some operations get an extra 'All'
|
# Grrrrrr, this one is annoying: some operations get an extra 'All'
|
||||||
elsif ($action =~ /^(delete|get|stats)$/ && $endpoint !~ /\{/) {
|
elsif ($action =~ /^(delete|get|stats)$/ && $endpoint !~ /\{/) {
|
||||||
$action .= "All";
|
$action .= "All";
|
||||||
|
Reference in New Issue
Block a user