cloudprovider: vagrant InstanceID implementation

Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
This commit is contained in:
Federico Simoncelli 2015-05-27 03:53:13 -04:00
parent 154eccefe2
commit 1a41082ca8

View File

@ -154,7 +154,11 @@ func (v *VagrantCloud) ExternalID(instance string) (string, error) {
// InstanceID returns the cloud provider ID of the specified instance.
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.