public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH storage] status: add enum for file upload content type
@ 2021-07-21 12:51 Lorenz Stechauner
  2021-07-21 14:47 ` [pve-devel] applied: " Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages in thread
From: Lorenz Stechauner @ 2021-07-21 12:51 UTC (permalink / raw)
  To: pve-devel

the addition of this enum does not change API behaviour, because
it is checked for 'iso' or 'vztmpl' aftwerwards anyway.

Signed-off-by: Lorenz Stechauner <l.stechauner@proxmox.com>
---
 PVE/API2/Storage/Status.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/PVE/API2/Storage/Status.pm b/PVE/API2/Storage/Status.pm
index 9275d1f..d16636b 100644
--- a/PVE/API2/Storage/Status.pm
+++ b/PVE/API2/Storage/Status.pm
@@ -378,6 +378,7 @@ __PACKAGE__->register_method ({
 	    content => {
 		description => "Content type.",
 		type => 'string', format => 'pve-storage-content',
+		enum => ['iso', 'vztmpl'],
 	    },
 	    filename => {
 		description => "The name of the file to create.",
-- 
2.30.2





^ permalink raw reply	[flat|nested] 2+ messages in thread

* [pve-devel] applied: [PATCH storage] status: add enum for file upload content type
  2021-07-21 12:51 [pve-devel] [PATCH storage] status: add enum for file upload content type Lorenz Stechauner
@ 2021-07-21 14:47 ` Thomas Lamprecht
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2021-07-21 14:47 UTC (permalink / raw)
  To: Proxmox VE development discussion, Lorenz Stechauner

On 21.07.21 14:51, Lorenz Stechauner wrote:
> the addition of this enum does not change API behaviour, because
> it is checked for 'iso' or 'vztmpl' aftwerwards anyway.
> 
> Signed-off-by: Lorenz Stechauner <l.stechauner@proxmox.com>
> ---
>  PVE/API2/Storage/Status.pm | 1 +
>  1 file changed, 1 insertion(+)
> 
>

applied, thanks!




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-21 14:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-21 12:51 [pve-devel] [PATCH storage] status: add enum for file upload content type Lorenz Stechauner
2021-07-21 14:47 ` [pve-devel] applied: " Thomas Lamprecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal