RamblingCookieMonster / RabbitMQTools

PowerShell module containing cmdlets to manage RabbitMQ.
http://ramblingcookiemonster.github.io/RabbitMQ-Intro/
MIT License
31 stars 22 forks source link

Remove-RabbitMQQueue asks always for confirmation? #25

Closed Spamme1 closed 7 years ago

Spamme1 commented 7 years ago

I was testing the library for dynamically add and remove queues, but the remove queue ask always for confirmation and I don't pass the -confirm switch, is it normal? It seems to me that it doesn't make too much sense, in this way you can't write a script, which works without human interaction, and moreover it makes the -confirm switch useless. Maybe I'm doing something wrong, although I can't not imagine what I could do wrong:

PS C:\> Remove-rabbitmqqueue Test
Confirm
Are you sure you want to perform this action?
Performing the operation "Remove queue(s): Test" on target "server: http://localhost:15672, vhost: /".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"):
Spamme1 commented 7 years ago

Found the solution -confirm:$false