Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors in Get-Machine by -Name #5

Open
rohmcd opened this issue Jan 26, 2017 · 2 comments
Open

Errors in Get-Machine by -Name #5

rohmcd opened this issue Jan 26, 2017 · 2 comments
Assignees

Comments

@rohmcd
Copy link

rohmcd commented Jan 26, 2017

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

@Swoogan Swoogan self-assigned this Jan 29, 2017
@Swoogan
Copy link
Owner

Swoogan commented Jan 29, 2017

I'm guess that the model in your Octopus version has changed versus the version I used to build the code. I will try upgrading. Then we can test to see if that works.

@Swoogan
Copy link
Owner

Swoogan commented Mar 8, 2017

I have upgraded to the client version 3.5.4 and released v0.3.1 as a zip (it's not on PSGet yet). I haven't tested because I'm having problems with SQL Server and the Octopus upgrade. However, you're welcome to download the update and see if it resolves your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants