mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Removes modification, instead relying on reload
This commit is contained in:
parent
0102262f26
commit
4fa2d86adf
1 changed files with 0 additions and 4 deletions
|
@ -53,28 +53,24 @@ module Fog
|
|||
|
||||
def add_instance instance
|
||||
instance = instance.self_link unless instance.class == String
|
||||
instances.push(instance)
|
||||
service.add_target_pool_instances(self, [instance])
|
||||
reload
|
||||
end
|
||||
|
||||
def remove_instance instance
|
||||
instance = instance.self_link unless instance.class == String
|
||||
instances.delete(instance)
|
||||
service.add_target_pool_instances(self, [instance])
|
||||
reload
|
||||
end
|
||||
|
||||
def add_health_check health_check
|
||||
health_check = health_check.self_link unless health_check.class == String
|
||||
health_checks.delete(health_check)
|
||||
service.add_target_pool_health_checks(self, [health_check])
|
||||
reload
|
||||
end
|
||||
|
||||
def remove_health_check health_check
|
||||
health_check = health_check.self_link unless health_check.class == String
|
||||
health_checks.delete(health_check)
|
||||
service.remove_target_pool_health_checks(self, [health_check])
|
||||
reload
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue