~go-bot/juju-core/trunk

Viewing all changes in revision 2814.

[r=hduran-8] APIWorker should only connect to API on localhost

In some cases, APIWorker might try to connect
to a different address than localhost in State 
Servers, to achieve this, APIInfo was modified 
to add localhost with the configured StateServerPort
to the Addrs list if not present. To make sure
localhost option will be picked first api.Open now
sorts the Addrs list before trying to connect
to make sure local ones will be tried first.

https://codereview.appspot.com/100810045/

R=natefinch

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: