GoogleCloudPlatform / google-cloud-powershell

PowerShell cmdlets for the Google Cloud Platform
http://googlecloudplatform.github.io/google-cloud-powershell/
Apache License 2.0
135 stars 61 forks source link

Add-GceInstance : ErrorAction preference not taking effect #586

Closed rajaprad closed 6 years ago

rajaprad commented 6 years ago

Module - 1.0.1.2

Command

Add-GceInstance -Project "myproject" -Zone "us-east1-b" -Region "us-east1-b" -Name "p radebbanvm" -MachineType f1-micro -ErrorAction SilentlyContinue

Error

Add-GceInstance : Google.Apis.Requests.RequestError The resource 'projects/myproject/zones/us-east1-b/instances/pradebbanvm' already exists [409] Errors [ Message[The resource 'projects/myproject/zones/us-east1-b/instances/pradebbanvm' already exists] Location[ - ] Reason[alreadyExists] Domain[global] ] At line:1 char:1

Issue -ErrorAction SilentlyContinue does not suppress the error!

rajaprad commented 6 years ago

@quoctruong : How can this be closed without a fix, and just by copying to another duplicate item which was created after this bug. Ideally the new bug should be closed as duplicate and this needs to be tracked till a release is there with a fix.

How would there be a ownership of bugs created by a contributor in public GitHub. Wakeup Google!!. Will see what can be done if this is not re-opened! @google-admin @ahandley - Any help ?

quoctruong commented 6 years ago

@rajaprad The “duplicate item” is actually a pull request to fix the issue. The issue got automatically closed when I closed that pull request. In any case this is now fixed and will be available in the next release of the module. I will reopen this issue and close it when that happens.

quoctruong commented 6 years ago

@rajaprad the fix is now available in version 1.0.1.14 of the module.