mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +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.
|
||||
func (m *metadata) InstanceType(name types.NodeName) (string, error) {
|
||||
instanceType, err := m.get(metadataTypeInstanceType)
|
||||
if err == nil {
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("could not get instance type: %v", err)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user