From 440bbc30f5762767bd8b83c5104bf7ff46ab3a1f Mon Sep 17 00:00:00 2001 From: Paul Thornthwaite Date: Fri, 26 Aug 2011 16:00:24 +0100 Subject: [PATCH] [compute|brightbox] Reset times to the correct type so not string attributes --- lib/fog/brightbox/models/compute/account.rb | 4 ++-- lib/fog/brightbox/models/compute/image.rb | 2 +- lib/fog/brightbox/models/compute/load_balancer.rb | 4 ++-- lib/fog/brightbox/models/compute/server.rb | 8 ++++---- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/fog/brightbox/models/compute/account.rb b/lib/fog/brightbox/models/compute/account.rb index d4b79878a..22e1e69c4 100644 --- a/lib/fog/brightbox/models/compute/account.rb +++ b/lib/fog/brightbox/models/compute/account.rb @@ -40,8 +40,8 @@ module Fog attribute :telephone_verified # Times - attribute :created_at - attribute :verified_at + attribute :created_at, :type => :time + attribute :verified_at, :type => :time # Links - to be replaced attribute :owner_id, :aliases => "owner", :squash => "id" diff --git a/lib/fog/brightbox/models/compute/image.rb b/lib/fog/brightbox/models/compute/image.rb index bda4a8024..364f075f0 100644 --- a/lib/fog/brightbox/models/compute/image.rb +++ b/lib/fog/brightbox/models/compute/image.rb @@ -26,7 +26,7 @@ module Fog attribute :compatibility_mode # Times - attribute :created_at + attribute :created_at, :type => :time # Links - to be replaced attribute :ancestor_id, :aliases => "ancestor", :squash => "id" diff --git a/lib/fog/brightbox/models/compute/load_balancer.rb b/lib/fog/brightbox/models/compute/load_balancer.rb index b0de81a50..877d999bc 100644 --- a/lib/fog/brightbox/models/compute/load_balancer.rb +++ b/lib/fog/brightbox/models/compute/load_balancer.rb @@ -19,8 +19,8 @@ module Fog attribute :listeners # Times - attribute :created_at - attribute :deleted_at + attribute :created_at, :type => :time + attribute :deleted_at, :type => :time # Links - to be replaced attribute :account diff --git a/lib/fog/brightbox/models/compute/server.rb b/lib/fog/brightbox/models/compute/server.rb index 235a46c26..9f8465653 100644 --- a/lib/fog/brightbox/models/compute/server.rb +++ b/lib/fog/brightbox/models/compute/server.rb @@ -19,10 +19,10 @@ module Fog attribute :console_token # Times - attribute :created_at - attribute :started_at - attribute :console_token_expires - attribute :deleted_at + attribute :created_at, :type => :time + attribute :started_at, :type => :time + attribute :console_token_expires, :type => :time + attribute :deleted_at, :type => :time # Links - to be replaced attribute :account_id, :aliases => "account", :squash => "id"