On 15.02.22 06:38, Marvin Edeler wrote:
> Signed-off-by: Marvin Edeler
> ---
> src/dns-challenge-schema.json | 21 +
> 1 file changed, 21 insertions(+)
>
> diff --git a/src/dns-challenge-schema.json b/src/dns-challenge-schema.json
> index 39ac2ba..16fef64 100644
> --- a/src/d
On 16.02.22 14:39, Wolfgang Bumiller wrote:
> This allows free form text to exist within property strings,
> quoted, like:
> key="A value with \"quotes, also commas",key2=value2
> or also:
> "the value for a default_key",key2=value2
>
> And drop ';' as a key=value separator since those are
'qemu-img info' with output format 'json' returns the size and used values as
integers, but the regex match converts them to strings.
As we know they only contain digits, we can simply cast them back to integers
after the regex.
The API requires them to be integers.
Signed-off-by: Mira Limbeck
-
Am 17.02.22 um 13:55 schrieb Mira Limbeck:
> 'qemu-img info' with output format 'json' returns the size and used values as
> integers, but the regex match converts them to strings.
> As we know they only contain digits, we can simply cast them back to integers
> after the regex.
>
> The API requir
On 2/17/22 14:24, Fabian Ebner wrote:
Am 17.02.22 um 13:55 schrieb Mira Limbeck:
'qemu-img info' with output format 'json' returns the size and used values as
integers, but the regex match converts them to strings.
As we know they only contain digits, we can simply cast them back to integers
aft
On 16.02.22 11:47, Fabian Ebner wrote:
> The format can't be qcow2 for TPM state, because swtpm reads the file
> directly expecting raw data.
>
> Signed-off-by: Fabian Ebner
> ---
>
> The DiskStorageSelector in the UI hides the format for TPM state, but
> still sends along format=qcow2 triggerin
On 16.07.21 15:27, Fabian Ebner wrote:
> Using
> pvesh create /nodes/pve701/apt/repositories --path
> "/etc/apt/sources.list" --index 0 --enabled 1
> reliably leads to
> error: invalid type: string "0", expected usize
>
> Coerce to int to avoid this. I was not able to trigger the issue
Am 17.02.22 um 14:33 schrieb Thomas Lamprecht:
> On 16.02.22 11:47, Fabian Ebner wrote:
>> The format can't be qcow2 for TPM state, because swtpm reads the file
>> directly expecting raw data.
>>
>> Signed-off-by: Fabian Ebner
>> ---
>>
>> The DiskStorageSelector in the UI hides the format for TPM
Am 17.02.22 um 14:33 schrieb Mira Limbeck:
> On 2/17/22 14:24, Fabian Ebner wrote:
>> Am 17.02.22 um 13:55 schrieb Mira Limbeck:
>>> 'qemu-img info' with output format 'json' returns the size and used
>>> values as
>>> integers, but the regex match converts them to strings.
>>> As we know they only
When restoring a backup and the storage the disks would be created on
doesn't allow 'images', the process errors without cleanup.
This is the same behaviour we currently have when the storage is
disabled.
Signed-off-by: Matthias Heiserer
---
PVE/QemuServer.pm | 4
1 file changed, 4 insertio
On 2/17/22 15:10, Fabian Ebner wrote:
Am 17.02.22 um 14:33 schrieb Mira Limbeck:
On 2/17/22 14:24, Fabian Ebner wrote:
Am 17.02.22 um 13:55 schrieb Mira Limbeck:
'qemu-img info' with output format 'json' returns the size and used
values as
integers, but the regex match converts them to strings
`qemu-img info --output=json` returns the size and used values as integers in
the JSON format, but the regex match converts them to strings.
As we know they only contain digits, we can simply cast them back to integers
after the regex.
The API requires them to be integers.
Signed-off-by: Mira Lim
Perl's automatic conversion can lead to integers being converted to
strings, for example by matching it in a regex.
To make sure we always return an integer in the API calls, add
explicit casts to integer.
Signed-off-by: Mira Limbeck
---
v2: new
PVE/API2/Storage/Content.pm | 6 --
1 file c
Am 17.02.22 um 15:54 schrieb Mira Limbeck:
> Perl's automatic conversion can lead to integers being converted to
> strings, for example by matching it in a regex.
>
> To make sure we always return an integer in the API calls, add
> explicit casts to integer.
>
> Signed-off-by: Mira Limbeck
> ---
Am 17.02.22 um 15:54 schrieb Mira Limbeck:
> `qemu-img info --output=json` returns the size and used values as integers in
> the JSON format, but the regex match converts them to strings.
> As we know they only contain digits, we can simply cast them back to integers
> after the regex.
>
> The API
15 matches
Mail list logo