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 :created, :aliases => 'created_at'
|
||||
|
||||
def services
|
||||
requires :id
|
||||
service.get_lb_services(id).body
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue