Skip to content

Commit 2769ff2

Browse files
authored
Merge pull request #50 from Corsinvest/fix-issue-49
Bump version to 9.1.2 and improve code quality
2 parents da6ae57 + 0a55252 commit 2769ff2

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

Corsinvest.ProxmoxVE.Api/Corsinvest.ProxmoxVE.Api.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Daniele Corsini
55
#
6-
# Generated on: 22/12/2025
6+
# Generated on: 09/02/2026
77
#
88

99
@{
@@ -12,7 +12,7 @@
1212
RootModule = 'Corsinvest.ProxmoxVE.Api.psm1'
1313

1414
# Version number of this module.
15-
ModuleVersion = '9.1.1'
15+
ModuleVersion = '9.1.2'
1616

1717
# Supported PSEditions
1818
# CompatiblePSEditions = @()

Corsinvest.ProxmoxVE.Api/Corsinvest.ProxmoxVE.Api.psm1

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ Return object request
241241
process {
242242
#use last ticket
243243
if ($null -eq $PveTicket) {
244-
if ($Global:PveTicketLast -ne $null) {
244+
if ($null -ne $Global:PveTicketLast) {
245245
$PveTicket = $Global:PveTicketLast
246246
} else {
247247
throw 'No PveTicket - Cluster Connect missing?'
@@ -631,12 +631,7 @@ PSCustomObject. Return Vm/s data.
631631
}
632632

633633
function IsNumeric([string]$x) {
634-
try {
635-
0 + $x | Out-Null
636-
return $true
637-
} catch {
638-
return $false
639-
}
634+
return $null -ne ($x -as [double])
640635
}
641636

642637
function VmCheckIdOrName

0 commit comments

Comments
 (0)