~juju-qa/ubuntu/xenial/juju/xenial-2.0-beta6

« back to all changes in this revision

Viewing changes to src/github.com/juju/juju/state/backups/backups_linux.go

  • Committer: Nicholas Skaggs
  • Date: 2016-04-20 14:50:35 UTC
  • Revision ID: nicholas.skaggs@canonical.com-20160420145035-m3aj05xazahybzxn
Merge beta5 upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
        if !ok {
109
109
                return nil, errors.Errorf("cannot determine state serving info")
110
110
        }
111
 
        APIHostPorts := network.NewHostPorts(ssi.APIPort, args.PrivateAddress)
 
111
        APIHostPorts := network.NewHostPorts(ssi.APIPort, args.PrivateAddress, args.PublicAddress)
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")