oracle / oracle/oci-powershell-modules

cmdlets with -LifecycleState param does not work with list of states

Open
#172 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

SDK
Dominant language
C#
Stars
40
Forks
14
Avg merge
20m
Merged PRs (30d)
4

Description

cmdlets with -LifecycleState param does not work with list of states

example:

PS> Get-OCIComputeInstancesList -CompartmentId $myCompartmentId -LifecycleState Running,Starting
Get-OCIComputeInstancesList: Cannot convert 'System.Object[]' to the type 'System.Nullable`1[Oci.CoreService.Models.Instance+LifecycleStateEnum]' required by parameter 'LifecycleState'. Specified method is not supported.

OCI.PSModules 73.1.0
tested in PowerShell 7.2 and 7.4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Get-OCIComputeInstancesList command in PowerShell 7.2 or 7.4 with multiple -LifecycleState values, using the reported OCI.PSModules 73.1.0 behavior as the baseline. Trace the cmdlet parameter handling and verify that a list such as Running,Starting is accepted without the conversion error.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
cli, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.