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

[bluebox|blb] fix more stub/copypaste inanity

This commit is contained in:
Josh Yotty 2013-02-18 15:47:46 -08:00
parent 86903bc180
commit 4ad8a92073
3 changed files with 12 additions and 7 deletions

View file

@ -14,6 +14,11 @@ module Fog
attribute :description
attribute :created, :aliases => 'created_at'
def services
requires :id
service.get_lb_services(id).body
end
end
end

View file

@ -12,11 +12,11 @@ module Fog
load(data)
end
def get(server_id)
if server_id && server = service.get_block(server_id).body
new(server)
def get(application_id)
if application_id && application = service.get_lb_application(application_id).body
new(application)
end
rescue Fog::Compute::Bluebox::NotFound
rescue Fog::Bluebox::BLB::NotFound
nil
end

View file

@ -12,11 +12,11 @@ module Fog
load(data)
end
def get(server_id)
if server_id && server = service.get_block(server_id).body
def get(application_id, service_id)
if service_id && service = service.get_lb_services(service_id).body
new(server)
end
rescue Fog::Compute::Bluebox::NotFound
rescue Fog::Bluebox::BLB::NotFound
nil
end