contraband / autopilot

cf plugin for hands-off, zero downtime application deploys
Apache License 2.0
130 stars 43 forks source link

Correctly handle the uninstall call from the CLI #47

Closed davewalter closed 6 years ago

davewalter commented 6 years ago

When you try to uninstall the plugin using cf uninstall-plugin autopilot, the CLI calls the plugin with a single argument of CLI-MESSAGE-UNINSTALL (see https://github.com/cloudfoundry/cli/tree/master/plugin/plugin_examples#uninstalling-a-plugin).

This PR makes it so that the plugin treats that as a no-op, instead of panicking here: https://github.com/contraband/autopilot/blob/master/autopilot.go#L130

xoebus commented 6 years ago

Thanks!