Skip to content

Errors in Get-Machine by -Name #5

@rohmcd

Description

@rohmcd

I get the following error when using Get-Machine (I import using an 'Octo-' prefix) using MachineName. Using an Id works fine.

Get-OctoMachine -Id Machines-82 works fine.

Get-OctoMachine -Name 'Server1' gives:

Get-OctoMachine : Error converting value "CalamariNeedsUpgrade" to type 
'Octopus.Client.Model.MachineModelStatus'. Path 'Items[0].Status', line 22, position 39.
At line:1 char:1
+ Get-OctoMachine Server1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-OctoMachine], JsonSerializationException
    + FullyQualifiedErrorId : Newtonsoft.Json.JsonSerializationException,Octopus_Cmdlets.GetMachine

Ps: The PowerShell Gallery version is still 0.1.0

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions