~rogpeppe/juju-core/azure

« back to all changes in this revision

Viewing changes to environs/cloudinit/cloudinit.go

  • Committer: Martin Packman
  • Date: 2013-07-11 10:43:38 UTC
  • mto: This revision was merged to the branch mainline in revision 1479.
  • Revision ID: martin.packman@canonical.com-20130711104338-jchpemg38ukyo7y0
Check the right Info object before using in apiHostAddrs

Show diffs side-by-side

added added

removed removed

Lines of Context:
334
334
        if cfg.StateServer {
335
335
                hosts = append(hosts, fmt.Sprintf("localhost:%d", cfg.APIPort))
336
336
        }
337
 
        if cfg.StateInfo != nil {
 
337
        if cfg.APIInfo != nil {
338
338
                hosts = append(hosts, cfg.APIInfo.Addrs...)
339
339
        }
340
340
        return hosts