Merge pull request #33 from liath/fix-xen-tools-ip-resolution

Fix XenServer tools guest IP address resolution
This commit is contained in:
Dom Del Nano 2021-12-18 17:13:44 -08:00 committed by GitHub
commit f4a161e806
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,8 @@ func (self *StepWaitForIP) Run(ctx context.Context, state multistep.StateBag) mu
return false, err
}
networks := metrics.Networks
if ip, ok := networks["0/ip"]; ok {
var ok bool
if ip, ok = networks["0/ip"]; ok {
if ip != "" {
ui.Message(fmt.Sprintf("Got IP '%s' from XenServer tools", ip))
return true, nil