mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[glesys] add take method to ip model
This commit is contained in:
parent
c60fea80bc
commit
a8acfdd8c2
2 changed files with 9 additions and 1 deletions
|
@ -62,6 +62,14 @@ module Fog
|
|||
remove(:release => true)
|
||||
end
|
||||
|
||||
def take
|
||||
requires :ip
|
||||
data = service.ip_take(
|
||||
:ipaddress => ip
|
||||
).body["response"]["details"]
|
||||
merge_attributes data
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -64,7 +64,7 @@ module Fog
|
|||
|
||||
data = service.ip_take(
|
||||
:ipaddress => ip_from_object(ip)
|
||||
).response.body["response"]["details"]
|
||||
).body["response"]["details"]
|
||||
|
||||
ip = new data
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue