mirror of
https://github.com/Corsinvest/cv4pve-api-powershell.git
synced 2026-04-25 12:15:48 +03:00
[GH-ISSUE #1] Connect-PveCluster #3
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cv4pve-api-powershell#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @flaviol on GitHub (Oct 1, 2020).
Original GitHub issue: https://github.com/Corsinvest/cv4pve-api-powershell/issues/1
Why the Connect-PveCluster function was deleted from exported ?
It was replaced by another one or it is no longer used?
The correct way for using the module is
$Ticket = Connect-PveCluster...
... more calls of module functions with $Ticket as parameter
In Power shell 5.1 I'm not able to import it obtaining the followin error message.
DETTAGLIATO: Caricamento del modulo dal percorso 'C:\Users\xxx\Documents\WindowsPowerShell\Modules\Corsinvest.ProxmoxVE.Api\Corsinvest.ProxmoxVE.Api.psd1'.
DETTAGLIATO: Caricamento del modulo dal percorso 'C:\Users\xxx\Documents\WindowsPowerShell\Modules\Corsinvest.ProxmoxVE.Api\Corsinvest.ProxmoxVE.Api.psm1'.
In C:\Users\xxx\Documents\WindowsPowerShell\Modules\Corsinvest.ProxmoxVE.Api\Corsinvest.ProxmoxVE.Api.psm1:235 car:55
Token '?' imprevisto nell'espressione o nell'istruzione.
In C:\Users\xxx\Documents\WindowsPowerShell\Modules\Corsinvest.ProxmoxVE.Api\Corsinvest.ProxmoxVE.Api.psm1:355 car:84
Token '?' imprevisto nell'espressione o nell'istruzione.
In C:\Users\xxx\Documents\WindowsPowerShell\Modules\Corsinvest.ProxmoxVE.Api\Corsinvest.ProxmoxVE.Api.psm1:356 car:63
Token ':' imprevisto nell'espressione o nell'istruzione.
In C:\Users\xxx\Documents\WindowsPowerShell\Modules\Corsinvest.ProxmoxVE.Api\Corsinvest.ProxmoxVE.Api.psm1:11 car:22
Impossibile trovare il tipo [System.Management.Automation.IValidateSetValuesGenerator].
In C:\Users\xxx\Documents\WindowsPowerShell\Modules\Corsinvest.ProxmoxVE.Api\Corsinvest.ProxmoxVE.Api.psm1:17 car:24
Impossibile trovare il tipo [System.Management.Automation.IValidateSetValuesGenerator].
In C:\Users\xxx\Documents\WindowsPowerShell\Modules\Corsinvest.ProxmoxVE.Api\Corsinvest.ProxmoxVE.Api.psm1:23 car:22
Impossibile trovare il tipo [System.Management.Automation.IValidateSetValuesGenerator].
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken
Import-Module : Impossibile elaborare il modulo 'Corsinvest.ProxmoxVE.Api.psm1' elencato nel campo 'ModuleToProcess/RootModule' del manifesto del modulo
'C:\Users\xxx\Documents\WindowsPowerShell\Modules\Corsinvest.ProxmoxVE.Api\Corsinvest.ProxmoxVE.Api.psd1'. Non sono stati trovati moduli validi in alcuna directory di moduli.
In riga:1 car:1
Thank for the great work
@franklupo commented on GitHub (Oct 1, 2020):
HI,
the first is an error. Im using PowerShell 7.1
Best regards
@franklupo commented on GitHub (Oct 9, 2020):
News?