mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 18:24:07 +00:00
fix bad return Error
This commit is contained in:
parent
45db5e7260
commit
d8ebc4f88f
@ -91,7 +91,7 @@ func (m *metadata) InstanceID(name types.NodeName) (string, error) {
|
|||||||
// InstanceType returns the type of the specified instance.
|
// InstanceType returns the type of the specified instance.
|
||||||
func (m *metadata) InstanceType(name types.NodeName) (string, error) {
|
func (m *metadata) InstanceType(name types.NodeName) (string, error) {
|
||||||
instanceType, err := m.get(metadataTypeInstanceType)
|
instanceType, err := m.get(metadataTypeInstanceType)
|
||||||
if err == nil {
|
if err != nil {
|
||||||
return "", fmt.Errorf("could not get instance type: %v", err)
|
return "", fmt.Errorf("could not get instance type: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user