mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +00:00
cloudprovider: ovirt InstanceID implementation
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
This commit is contained in:
parent
2a89428d44
commit
466a7daaa8
@ -178,7 +178,13 @@ func (v *OVirtCloud) ExternalID(name string) (string, error) {
|
|||||||
|
|
||||||
// InstanceID returns the cloud provider ID of the specified instance.
|
// InstanceID returns the cloud provider ID of the specified instance.
|
||||||
func (v *OVirtCloud) InstanceID(name string) (string, error) {
|
func (v *OVirtCloud) InstanceID(name string) (string, error) {
|
||||||
return "", nil
|
instance, err := v.fetchInstance(name)
|
||||||
|
if err != nil {
|
||||||
|
return "", err
|
||||||
|
}
|
||||||
|
// TODO: define a way to identify the provider instance to complete
|
||||||
|
// the format <provider_instance_id>/<instance_id>.
|
||||||
|
return "/" + instance.UUID, err
|
||||||
}
|
}
|
||||||
|
|
||||||
func getInstancesFromXml(body io.Reader) (OVirtInstanceMap, error) {
|
func getInstancesFromXml(body io.Reader) (OVirtInstanceMap, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user