From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 338C01FF187 for ; Fri, 19 Dec 2025 20:46:41 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 9D36314C0D; Fri, 19 Dec 2025 20:46:03 +0100 (CET) From: "Max R. Carrara" To: pve-devel@lists.proxmox.com Date: Fri, 19 Dec 2025 20:44:58 +0100 Message-ID: <20251219194511.840583-24-m.carrara@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251219194511.840583-1-m.carrara@proxmox.com> References: <20251219194511.840583-1-m.carrara@proxmox.com> MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1766173546505 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.083 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH pve-common v1 23/23] sectionconfig: correct example in docstring of `updateSchema()` X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" ... and also reword / format the description for the `$single_class` parameter somewhat. Signed-off-by: Max R. Carrara --- src/PVE/SectionConfig.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/PVE/SectionConfig.pm b/src/PVE/SectionConfig.pm index 7c27276..77ab156 100644 --- a/src/PVE/SectionConfig.pm +++ b/src/PVE/SectionConfig.pm @@ -576,8 +576,8 @@ sub createSchema { =head3 $plugin->updateSchema([ $single_class, $base ]) - $update_schema = PVE::Example::Plugin->update_schema($single_class, $base) - $update_schema = $class->updateSchema($single_class, $base) + $update_schema = PVE::Example::Plugin->updateSchema($single_class, $base) + $update_schema = $plugin->updateSchema($single_class, $base) Returns the C> used for I config entries of a I. @@ -590,9 +590,9 @@ parameters of an API handler (C). =item C<$single_class> (optional) Can be set to C<1> to only include properties which are defined in the returned -hash of Coptions() >>> of the plugin C<$class>. +hash of Coptions() >>> of the C<$plugin> instance. -This parameter is only valid for child plugins, not the base plugin. +B This parameter is only valid for child plugins, not the base plugin. =item C<$base> (optional) -- 2.47.3 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel