kubernetes/pkg/cloudprovider/providers/vsphere/vsphere_util_unsupported.go
Ben Moss 33bfe74c0d Fix Windows to read VM UUIDs from serial numbers
Certain versions of vSphere do not have the same value for product_uuid
and product_serial. This mimics the change in #59519.

Fixes #74888
2019-03-04 18:06:54 -05:00

26 lines
746 B
Go

// +build !windows,!linux
/*
Copyright 2018 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package vsphere
import "fmt"
func getRawUUID() (string, error) {
return "", fmt.Errorf("Retrieving VM UUID on this build is not implemented.")
}