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

ISSUE: Remove-vRAReservation - Id Parameter in URI should be $ReservationId not $Id #33

Closed
chelnak opened this issue Apr 19, 2016 · 1 comment
Assignees
Labels

Comments

@chelnak
Copy link
Contributor

chelnak commented Apr 19, 2016

The by id block needs updating to the following:


            'ById' {

                foreach ($ReservationId in $Id) {

                    if ($PSCmdlet.ShouldProcess($ReservationId)){

                        $URI = "/reservation-service/api/reservations/$($ReservationId)"

                        Write-Verbose -Message "Preparing DELETE to $($URI)"

                        $Response = Invoke-vRARestMethod -Method DELETE -URI "$($URI)"

                        Write-Verbose -Message "SUCCESS"

                    }

@chelnak chelnak added the bug label Apr 19, 2016
@chelnak
Copy link
Contributor Author

chelnak commented May 18, 2016

Updated incorrect snipped $ReservationId

chelnak added a commit that referenced this issue Jun 4, 2016
@chelnak chelnak self-assigned this Jun 4, 2016
@chelnak chelnak closed this as completed Jun 4, 2016
@chelnak chelnak reopened this Jun 4, 2016
@chelnak chelnak closed this as completed Jun 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant