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

Return single object if final results list only has 1 object #253

Dalmirog opened this Issue Apr 20, 2017 · 0 comments


None yet
1 participant

Dalmirog commented Apr 20, 2017

The below applies to all Get-X cmdlets

If you run Get-OctopusTeam -Name MyTeam -ResourceOnly to get the raw Octopus team to do something like:

$project = Get-OctopusProject -Name MyProject
$team = Get-OctopusTeam -Name MyTeam -ResourceOnly


It'll fail becaue $team is a collection of objects, forcing you to do something like $team[0].projectIds.add($

If any of the Get-OctopusX cmdlets returns a single object, it should only be that object and not a list with 1 object.

@Dalmirog Dalmirog added this to the 0.6.4/1.0.0-Beta4 milestone Apr 20, 2017

@Dalmirog Dalmirog self-assigned this Apr 20, 2017

@Dalmirog Dalmirog closed this Apr 20, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment