1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
Commit graph

9 commits

Author SHA1 Message Date
Paul Thornthwaite
9d3a27f10a [openstack] Updates reference to service 2013-01-07 21:01:18 +00:00
Paul Thornthwaite
7961ad6508 [core] Deprecates 'connection' accessor
The 'connection' accessor in collections and models actually refered to
a subclassed instance of Fog::Service which creates confusion in the
code.

References to 'connection' could have meant the service or the
Fog::Connection held within that service.

This deprecates the connection accessor and replaces it with `#service`
as a read only value. When a collection or model is initalised then
service should be passed.

This commit also updates all the changes to @connection made by
providers in model initialisers since these depending on the presence of
the 'connection' key. The key is still accepted by outputs a warning.
2013-01-07 20:53:24 +00:00
Paul Thornthwaite
40c0cd7122 Make use of #persisted? method
In many places we were checking for identity which was the shorthand for
checking if the resource had been saved by the service.

The #persisted? method was added to show a clearer intent and also offer
minimal ActiveModel interface
2012-12-23 02:45:05 +00:00
Eric Hodel
97d50bbeae Added OpenStack EC2 credential management models
Altered the paths for EC2 credential requests to remove an extra / in
the request URIs.

Altered Fog::Open::Identity::Real#request to retry only once when given
a 401 error response code.  The EC2 API returns 401 when attempting to
fetch nonexistent EC2 credentials instead of something sensible like
404, leading to an infinite loop.  Also, the "Bad username or password"
check was removed.  My version of OpenStack does not return this message
when a token is expired, but returns the same message as for a missing
EC2 credential.
2012-12-05 14:27:10 -08:00
Mark Maglana
0d9b04b104 [openstack|identity] Correction in Roles#all method
User#roles should be calling Service#list_roles_for_user_on_tenant
directly and not use Roles#all since the latter is actually a method
for getting all roles in the Identity Service
2012-04-30 10:35:03 +08:00
Alvin Garcia
8d084194b4 [openstack|identity] Update users model initialization and save 2012-04-30 10:35:01 +08:00
Alvin Garcia
040cd20021 [openstack|identity] Update users collections and model 2012-04-30 10:35:01 +08:00
Alvin Garcia
b122f0c85e [openstack|identity] Keystone Roles and Users 2012-04-30 10:34:59 +08:00
Nelvin Driz
e1c5155a34 [openstack|identity] Update Tenants 2012-04-30 10:34:58 +08:00