Return correct ProviderID format from GetAsgNodes
This matches the way that the [gce does it][1] and fixes issues with the
[cluster state][2].
1:
2:
@@ -224,7 +224,8 @@ func (m *AwsManager) GetAsgNodes(asg *Asg) ([]string, error) {
return []string{}, err
}
for _, instance := range group.Instances {
- result = append(result, *instance.InstanceId)
+ result = append(result,
+ fmt.Sprintf("aws:///%s/%s", *instance.AvailabilityZone, *instance.InstanceId))
}
return result, nil
}
