109
109
return nil, errors.Errorf("cannot determine state serving info")
112
112
agentConfig.SetAPIHostPorts([][]network.HostPort{APIHostPorts})
113
113
if err := agentConfig.Write(); err != nil {
114
114
return nil, errors.Annotate(err, "cannot write new agent configuration")