From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 797BB1FF191 for ; Tue, 7 Oct 2025 17:19:08 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 6B5991C1F6; Tue, 7 Oct 2025 17:19:12 +0200 (CEST) Message-ID: <039680bc-8068-43a3-ab17-9502b4a5a236@proxmox.com> Date: Tue, 7 Oct 2025 17:18:38 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: pve-devel@lists.proxmox.com References: <20251007135638.136536-1-n.frey@proxmox.com> From: Nicolas Frey Content-Language: en-US In-Reply-To: <20251007135638.136536-1-n.frey@proxmox.com> X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1759850288831 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.859 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: Re: [pve-devel] [PATCH pve-common] cli: fix #6762: only copy properties if defined 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" Superseded-by: https://lore.proxmox.com/pve-devel/20251007151649.163255-1-n.frey@proxmox.com/T/#u On 10/7/25 3:56 PM, Nicolas Frey wrote: > Adds a defined check to the copy, as to not result in the bugfixes > reported error when double tabbing on `pveceph status`. > > Fixes: https://bugzilla.proxmox.com/show_bug.cgi?id=6762 > Signed-off-by: Nicolas Frey > --- > src/PVE/CLIHandler.pm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/src/PVE/CLIHandler.pm b/src/PVE/CLIHandler.pm > index 89cb7b7..cdd71c7 100644 > --- a/src/PVE/CLIHandler.pm > +++ b/src/PVE/CLIHandler.pm > @@ -455,7 +455,8 @@ my $print_bash_completion = sub { > > my $info = $class->map_method_by_name($name); > > - my $prop = { %{ $info->{parameters}->{properties} } }; # copy > + my $prop = { %{ $info->{parameters}->{properties} } } > + if defined $info->{parameters}->{properties}; # copy > $prop = { %$prop, %$formatter_properties } if $formatter_properties; > > my $print_parameter_completion = sub { _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel