oracle / oracle/oci-powershell-modules
cmdlets with -LifecycleState param does not work with list of states
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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