Skip to content
This repository was archived by the owner on Mar 22, 2018. It is now read-only.

Commit 6177102

Browse files
author
Henrik Schmidt
committed
Use custom error for "unimplemented"
1 parent dfbbd7a commit 6177102

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

pkg/cloudprovider/providers/openstack/openstack_instances.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ limitations under the License.
1717
package openstack
1818

1919
import (
20-
"errors"
2120
"fmt"
2221
"regexp"
2322

@@ -59,7 +58,7 @@ func (i *Instances) CurrentNodeName(hostname string) (types.NodeName, error) {
5958
}
6059

6160
func (i *Instances) AddSSHKeyToAllInstances(user string, keyData []byte) error {
62-
return errors.New("unimplemented")
61+
return cloudprovider.NotImplemented
6362
}
6463

6564
func (i *Instances) NodeAddresses(name types.NodeName) ([]v1.NodeAddress, error) {
@@ -113,7 +112,7 @@ func (i *Instances) ExternalID(name types.NodeName) (string, error) {
113112
// InstanceExistsByProviderID returns true if the instance with the given provider id still exists and is running.
114113
// If false is returned with no error, the instance will be immediately deleted by the cloud controller manager.
115114
func (i *Instances) InstanceExistsByProviderID(providerID string) (bool, error) {
116-
return false, errors.New("unimplemented")
115+
return false, cloudprovider.NotImplemented
117116
}
118117

119118
// InstanceID returns the kubelet's cloud provider ID.

0 commit comments

Comments
 (0)