Use cloudprovider.NotImplemented in AddSSHKeyToAllInstances

Minor cleanup: In looking at implementations of this method,
noticed a few providers created their own errors instead of using cloudprovider.NotImplemented
This commit is contained in:
Doug MacEachern
2018-04-27 13:15:59 -07:00
parent 70e9288407
commit e7cc5df3f6
4 changed files with 4 additions and 5 deletions

View File

@@ -130,7 +130,7 @@ func (cs *CSCloud) InstanceTypeByProviderID(ctx context.Context, providerID stri
// AddSSHKeyToAllInstances is currently not implemented.
func (cs *CSCloud) AddSSHKeyToAllInstances(ctx context.Context, user string, keyData []byte) error {
return errors.New("AddSSHKeyToAllInstances not implemented")
return cloudprovider.NotImplemented
}
// CurrentNodeName returns the name of the node we are currently running on.