From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <pve-devel-bounces@lists.proxmox.com>
Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9])
	by lore.proxmox.com (Postfix) with ESMTPS id 7DB281FF37F
	for <inbox@lore.proxmox.com>; Thu, 18 Apr 2024 18:45:10 +0200 (CEST)
Received: from firstgate.proxmox.com (localhost [127.0.0.1])
	by firstgate.proxmox.com (Proxmox) with ESMTP id 73A7731C31;
	Thu, 18 Apr 2024 18:45:11 +0200 (CEST)
To: pve-devel@lists.proxmox.com
Date: Thu, 18 Apr 2024 18:44:27 +0200
In-Reply-To: <20240418164427.13881-1-jcdra1@gmail.com>
References: <20240418164427.13881-1-jcdra1@gmail.com>
MIME-Version: 1.0
Message-ID: <mailman.704.1713458710.450.pve-devel@lists.proxmox.com>
List-Id: Proxmox VE development discussion <pve-devel.lists.proxmox.com>
List-Post: <mailto:pve-devel@lists.proxmox.com>
From: Johannes Cornelis Draaijer via pve-devel <pve-devel@lists.proxmox.com>
Precedence: list
Cc: Johannes Cornelis Draaijer <jcdra1@gmail.com>
X-Mailman-Version: 2.1.29
X-BeenThere: pve-devel@lists.proxmox.com
List-Subscribe: <https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel>, 
 <mailto:pve-devel-request@lists.proxmox.com?subject=subscribe>
List-Unsubscribe: <https://lists.proxmox.com/cgi-bin/mailman/options/pve-devel>, 
 <mailto:pve-devel-request@lists.proxmox.com?subject=unsubscribe>
List-Archive: <http://lists.proxmox.com/pipermail/pve-devel/>
Reply-To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>
List-Help: <mailto:pve-devel-request@lists.proxmox.com?subject=help>
Subject: [pve-devel] [PATCH pve-network 1/1] api: sdn: fix missing types for
 'pending' fields.
Content-Type: multipart/mixed; boundary="===============4475687535304950874=="
Errors-To: pve-devel-bounces@lists.proxmox.com
Sender: "pve-devel" <pve-devel-bounces@lists.proxmox.com>

--===============4475687535304950874==
Content-Type: message/rfc822
Content-Disposition: inline

Return-Path: <jcdra1@gmail.com>
X-Original-To: pve-devel@lists.proxmox.com
Delivered-To: pve-devel@lists.proxmox.com
Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by lists.proxmox.com (Postfix) with ESMTPS id C2D5899A64
	for <pve-devel@lists.proxmox.com>; Thu, 18 Apr 2024 18:45:09 +0200 (CEST)
Received: from firstgate.proxmox.com (localhost [127.0.0.1])
	by firstgate.proxmox.com (Proxmox) with ESMTP id 5A83431B77
	for <pve-devel@lists.proxmox.com>; Thu, 18 Apr 2024 18:44:39 +0200 (CEST)
Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
	(No client certificate requested)
	by firstgate.proxmox.com (Proxmox) with ESMTPS
	for <pve-devel@lists.proxmox.com>; Thu, 18 Apr 2024 18:44:38 +0200 (CEST)
Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-516ef30b16eso1322782e87.3
        for <pve-devel@lists.proxmox.com>; Thu, 18 Apr 2024 09:44:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20230601; t=1713458671; x=1714063471; darn=lists.proxmox.com;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:cc:to:from:from:to:cc:subject:date
         :message-id:reply-to;
        bh=9zGgYnLta7CbhMXSClRQuXiXohwoFjfd6mXqJ+BS1Cw=;
        b=eszMu1ElK24Te3RqR0gU+MZLbvqD0aH4SIIR/5oaSgRys1W00HeU41jk9fGMwm3urR
         wRia22m1TtZEniJByfE7TIEkow6WRfY5muJxAh9itwW/B4vH5TZAkeWpFctrGCdCrSoG
         YnheBMR8O3JQ4fP5zks4zFH7LtDv5ErV1zvQ1PlFx4Wxwokk4ZXEHL7nEXfLXdO+jgg2
         5fGRJEU8eBqlPEq44gLBfhcLeR02HNl3RAgu2hT6mL9y0SQD3Sv6pm/Biz8NEm+upCtV
         JrAYF3u32imeXQWHX1l/A3cHmPICZ/tiFhiOtjHbZXfytD+z8rVtbH9ia8i1AdYPdIjV
         UB2A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20230601; t=1713458671; x=1714063471;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc
         :subject:date:message-id:reply-to;
        bh=9zGgYnLta7CbhMXSClRQuXiXohwoFjfd6mXqJ+BS1Cw=;
        b=bHCUGg+jv5leU9xSfOFu+rAaeeEhEBlpwdtXIlSxiaOjQ1TPxzJahsBa6Ku6Do66Bw
         iGuRlLr2RQ6n/gBepJXTLwAGf0J3/rvEQFXlDV+KK+Ts5oNV92UblRqKIc+hBgH8xdKm
         jdGsL+lZHVhrvxQOY0PSxco88VLTZ5XnnSMuZNWoS830ujsDgQAGISdQfTFzuGr5RRai
         ssErEDW8ecx6HtuMB71o8cdgIijlpKvUKWYpCZk4o/G2BPh5f9l5wDWeMRJ/ZFO1ErXy
         Yte79LJyiQXvtYEkizW7OpPjIkQB7ETuHitGaqKtFIwkvxfbU5dW7wEh4PQwLVscbdC3
         Kj7w==
X-Gm-Message-State: AOJu0Yz0r/q+SvgL2uBDEffDKMb4k/FaAhklwuGhQyMdG1yumlE6+i9i
	gm2tCGUwgc1NYchX9lxXZftk3cEPXRe0Y41CZX/6IwOH0eNBUTFPhQqskA==
X-Google-Smtp-Source: AGHT+IH8Tdk9fKhlCbsxFNx3pJIf6kSakq6G4KDEs9dgnRSj0WEfvbNmJ9KEiQ9szQ+uBvPVq46KXw==
X-Received: by 2002:ac2:5216:0:b0:519:45eb:469e with SMTP id a22-20020ac25216000000b0051945eb469emr1733062lfl.28.1713458670984;
        Thu, 18 Apr 2024 09:44:30 -0700 (PDT)
Received: from desktop.lan ([2a01:799:1817:b300::ec5])
        by smtp.gmail.com with ESMTPSA id s6-20020a197706000000b00518d7c38cb9sm307906lfc.284.2024.04.18.09.44.29
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Thu, 18 Apr 2024 09:44:30 -0700 (PDT)
From: Johannes Cornelis Draaijer <jcdra1@gmail.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH pve-network 1/1] api: sdn: fix missing types for 'pending' fields.
Date: Thu, 18 Apr 2024 18:44:27 +0200
Message-Id: <20240418164427.13881-2-jcdra1@gmail.com>
X-Mailer: git-send-email 2.34.1
In-Reply-To: <20240418164427.13881-1-jcdra1@gmail.com>
References: <20240418164427.13881-1-jcdra1@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-SPAM-LEVEL: Spam detection results:  0
	BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
	DKIM_SIGNED               0.1 Message has a DKIM or DK signature, not necessarily valid
	DKIM_VALID               -0.1 Message has at least one valid DKIM or DK signature
	DKIM_VALID_AU            -0.1 Message has a valid DKIM or DK signature from author's domain
	DKIM_VALID_EF            -0.1 Message has a valid DKIM or DK signature from envelope-from domain
	DMARC_PASS               -0.1 DMARC pass policy
	FREEMAIL_ENVFROM_END_DIGIT   0.25 Envelope-from freemail username ends in digit
	FREEMAIL_FROM           0.001 Sender email is commonly abused enduser mail provider
	RCVD_IN_DNSWL_NONE     -0.0001 Sender listed at https://www.dnswl.org/, no trust
	SPF_HELO_NONE           0.001 SPF: HELO does not publish an SPF Record
	SPF_PASS               -0.001 SPF: sender matches SPF record

Signed-off-by: Johannes Cornelis Draaijer <jcdra1@gmail.com>
---
 src/PVE/API2/Network/SDN/Controllers.pm | 2 +-
 src/PVE/API2/Network/SDN/Zones.pm       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/PVE/API2/Network/SDN/Controllers.pm b/src/PVE/API2/Network/SDN/Controllers.pm
index 0540a65..38a685d 100644
--- a/src/PVE/API2/Network/SDN/Controllers.pm
+++ b/src/PVE/API2/Network/SDN/Controllers.pm
@@ -71,7 +71,7 @@ __PACKAGE__->register_method ({
 	    properties => { controller => { type => 'string' },
 			    type => { type => 'string' },
 			    state => { type => 'string', optional => 1 },
-                            pending => { optional => 1},
+			    pending => { type => 'boolean', optional => 1 },
 	    },
 	},
 	links => [ { rel => 'child', href => "{controller}" } ],
diff --git a/src/PVE/API2/Network/SDN/Zones.pm b/src/PVE/API2/Network/SDN/Zones.pm
index 35e2f7f..2c27983 100644
--- a/src/PVE/API2/Network/SDN/Zones.pm
+++ b/src/PVE/API2/Network/SDN/Zones.pm
@@ -100,7 +100,7 @@ __PACKAGE__->register_method ({
 			    dnszone => { type => 'string', optional => 1},
 			    ipam => { type => 'string', optional => 1},
 			    dhcp => { type => 'string', optional => 1},
-			    pending => { optional => 1},
+			    pending => { type => 'boolean', optional => 1 },
 			    state => { type => 'string', optional => 1},
 			    nodes => { type => 'string', optional => 1},
 			  },
-- 
2.34.1



--===============4475687535304950874==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

--===============4475687535304950874==--