~wallyworld/goose/trunk

Viewing all changes in revision 29.

  • Committer: Ian Booth
  • Date: 2012-11-30 10:39:51 UTC
  • mfrom: (28.1.2 authenticate-on-demand)
  • Revision ID: ian.booth@canonical.com-20121130103951-qiqtg84yqf0kade4
Client authenticates on demand

In writing some more of the OpenStack provider for juju-core, it seems that authentication is not done explicitly. At least this looks to be the case for the EC2 provider.
So I have modifed the goose modules (nova, swift, client) to remove the explicit Authenticate() calls. Instead, when SendRequest() is invoked, if the client is not 
authenticated, then Authenticate() is called at that point so long as credentials have been specified.

R=dimitern
CC=
https://codereview.appspot.com/6854123

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: