fog/fog — Issue #650: rackspace load balancer attribute connection logging unexpectedly returns nil
Author: kensoncheung
Created: 2011-12-12 06:32:09+00:00
State: open

Hi,

Right after I enabled the connection logging attribute, when I access fog_lb.connection_logging, it returned true.

But after I re-established the connection, it seems always return nil. However, when I use the real version to get it, I can see {"enabled"=>true}.

I've used the real version to get around it, but please have a check.

Thanks,
Kenson

PS:
> fog_lb.reload
> fog_lb.connection_logging
=> nil # set as true in last connection or on rackspace console

> fog_lb.attributes[:connection_logging]
=> nil

> fog_lb.disable_connection_logging
=> false
> fog_lb.connection_logging
=> false

> fog_lb.enable_connection_logging
=> true
> fog_lb.connection_logging
=> true

> fog_lb.connection.get_connection_logging(fog_lb.id)
=> #{"enabled"=>true}}, @headers={"Content-Type"=>"application/json", "Date"=>"Mon, 12 Dec 2011 06:17:57 GMT", "Content-Length"=>"38", "Server"=>"Rackspace Cloud Load Balancer API v1.7.17"}>