]> git.proxmox.com Git - pve-manager.git/commitdiff
fixup! api: node stopall: expose setting the task timeout as endpoint parameter
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 14 Jan 2023 16:33:07 +0000 (17:33 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 14 Jan 2023 16:41:04 +0000 (17:41 +0100)
PVE/API2/Nodes.pm

index e90d2f66950fb5f66fd808f7fb35f785d716c210..47c2d74141e25ea391bebbc79ec02e3d098654fc 100644 (file)
@@ -1911,12 +1911,13 @@ __PACKAGE__->register_method ({
                optional => 1,
            },
            'timeout' => {
-               description => 'Timeout for each guest shutdown task.',
+               description => 'Timeout for each guest shutdown task. Depending on `force-stop`,'
+                   .' the shutdown gets then simply aborted or a hard-stop is forced.',
                type => 'integer',
                optional => 1,
                default => 180,
-               min => 0,
-               max => 2 * 3600, # mostly arbitrary, but we do not want to high timeouts
+               minimum => 0,
+               maximum => 2 * 3600, # mostly arbitrary, but we do not want to high timeouts
            },
        },
     },