Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Correctly handle the uninstall call from the CLI #47

Merged
merged 1 commit into from
Nov 10, 2017
Merged

Correctly handle the uninstall call from the CLI #47

merged 1 commit into from
Nov 10, 2017

Conversation

davewalter
Copy link
Contributor

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
Copy link
Contributor

xoebus commented Nov 10, 2017

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants