mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-10 04:27:54 +00:00
cloudprovider: vagrant InstanceID implementation
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
This commit is contained in:
parent
154eccefe2
commit
1a41082ca8
@ -154,7 +154,11 @@ func (v *VagrantCloud) ExternalID(instance 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 *VagrantCloud) InstanceID(instance string) (string, error) {
|
func (v *VagrantCloud) InstanceID(instance string) (string, error) {
|
||||||
return "", nil
|
minion, err := v.getInstanceByAddress(instance)
|
||||||
|
if err != nil {
|
||||||
|
return "", err
|
||||||
|
}
|
||||||
|
return minion.IP, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// saltMinionsByRole filters a list of minions that have a matching role.
|
// saltMinionsByRole filters a list of minions that have a matching role.
|
||||||
|
Loading…
Reference in New Issue
Block a user