From: Stefan Reiter <s.reiter@proxmox.com>
To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>,
Dietmar Maurer <dietmar@proxmox.com>,
Moayad Almalat <m.almalat@proxmox.com>,
pve-devel@pve.proxmox.com
Subject: Re: [pve-devel] [PATCH pve-manager]: api2:/cluster return intiger format for VMID
Date: Tue, 1 Dec 2020 11:38:12 +0100 [thread overview]
Message-ID: <e4dedf77-d80f-f5cf-ce53-236b3423d0df@proxmox.com> (raw)
In-Reply-To: <136819029.416.1606815773304@webmail.proxmox.com>
On 01/12/2020 10:42, Dietmar Maurer wrote:
>
>> On 12/01/2020 10:41 AM Dietmar Maurer <dietmar@proxmox.com> wrote:
>>
>>
>>> for (my $i = 100; $i < 10000; $i++) {
>>> - return $i if !defined($idlist->{$i});
>>> + return int($i) if !defined($idlist->{$i});
>>
>> IMO, this does not solve the problem, because $i is already and int.
>
> or does $idlist->{$i} converts $i to string??
>
Without testing anything, just my two cents, but we previously had the
issue where the JSON formatter in Perl would format a value based on
it's last usage context - and in case of a hash access that's probably a
string, even if $i "is" an int.
prev parent reply other threads:[~2020-12-01 10:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-01 9:34 Moayad Almalat
2020-12-01 9:41 ` Aaron Lauterer
2020-12-01 9:41 ` Dietmar Maurer
2020-12-01 9:42 ` Dietmar Maurer
2020-12-01 10:38 ` Stefan Reiter [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e4dedf77-d80f-f5cf-ce53-236b3423d0df@proxmox.com \
--to=s.reiter@proxmox.com \
--cc=dietmar@proxmox.com \
--cc=m.almalat@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
--cc=pve-devel@pve.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal