cloudfoundry/log-cache-cli

Uninstalling gives error message

Closed this issue · 1 comments

It looks like we aren't handling the uninstall hook properly:

pivotal@erie log-cache-cli (master *)$ cf install-plugin -f ./log-cache-cli
Attention: Plugins are binaries written by potentially untrusted authors.
Install and use plugins at your own risk.
Plugin Log Cache CLI Plugin N/A is already installed. Uninstalling existing plugin...
2018/02/12 16:26:24 Expected at least 2 arguments, but got 1.
exit status 1
FAILED
pivotal@erie log-cache-cli (master *)$ cf install-plugin -f ./log-cache-cli
Attention: Plugins are binaries written by potentially untrusted authors.
Install and use plugins at your own risk.
Installing plugin Log Cache CLI Plugin...
OK
Plugin Log Cache CLI Plugin N/A successfully installed.
pivotal@erie log-cache-cli (master *)$ cf install-plugin -f ./log-cache-cli
Attention: Plugins are binaries written by potentially untrusted authors.
Install and use plugins at your own risk.
Plugin Log Cache CLI Plugin N/A is already installed. Uninstalling existing plugin...
2018/02/12 16:26:27 Expected at least 2 arguments, but got 1.
exit status 1
FAILED
pivotal@erie log-cache-cli (master *)$ cf install-plugin -f ./log-cache-cli
Attention: Plugins are binaries written by potentially untrusted authors.
Install and use plugins at your own risk.
Installing plugin Log Cache CLI Plugin...
OK
Plugin Log Cache CLI Plugin N/A successfully installed.

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/155159231

The labels on this github issue will be updated when the story is started.