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:
parent
86903bc180
commit
4ad8a92073
3 changed files with 12 additions and 7 deletions
|
@ -14,6 +14,11 @@ module Fog
|
||||||
attribute :description
|
attribute :description
|
||||||
attribute :created, :aliases => 'created_at'
|
attribute :created, :aliases => 'created_at'
|
||||||
|
|
||||||
|
def services
|
||||||
|
requires :id
|
||||||
|
service.get_lb_services(id).body
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -12,11 +12,11 @@ module Fog
|
||||||
load(data)
|
load(data)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get(server_id)
|
def get(application_id)
|
||||||
if server_id && server = service.get_block(server_id).body
|
if application_id && application = service.get_lb_application(application_id).body
|
||||||
new(server)
|
new(application)
|
||||||
end
|
end
|
||||||
rescue Fog::Compute::Bluebox::NotFound
|
rescue Fog::Bluebox::BLB::NotFound
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -12,11 +12,11 @@ module Fog
|
||||||
load(data)
|
load(data)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get(server_id)
|
def get(application_id, service_id)
|
||||||
if server_id && server = service.get_block(server_id).body
|
if service_id && service = service.get_lb_services(service_id).body
|
||||||
new(server)
|
new(server)
|
||||||
end
|
end
|
||||||
rescue Fog::Compute::Bluebox::NotFound
|
rescue Fog::Bluebox::BLB::NotFound
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue