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

slicehost.get_zones fully working

debugged issues with get_zones. still no test cases though.  once get rest of DNS functions working will contact geemus and find out more about how to add test cases
This commit is contained in:
Athir Nuaimi 2010-12-09 13:20:44 -05:00
parent 9d4b6a8bfb
commit 5b50f8b2a8
2 changed files with 10 additions and 13 deletions

View file

@ -8,7 +8,7 @@ Gem::Specification.new do |s|
## the sub! line in the Rakefile
s.name = 'fog'
s.version = '0.3.30'
s.date = '2010-12-08'
s.date = '2010-12-09'
s.rubyforge_project = 'fog'
## Make sure your summary is short. The description may be as long
@ -514,6 +514,7 @@ Gem::Specification.new do |s|
lib/fog/slicehost/parsers/compute/get_images.rb
lib/fog/slicehost/parsers/compute/get_slice.rb
lib/fog/slicehost/parsers/compute/get_slices.rb
lib/fog/slicehost/parsers/compute/get_zones.rb
lib/fog/slicehost/requests/compute/create_slice.rb
lib/fog/slicehost/requests/compute/delete_slice.rb
lib/fog/slicehost/requests/compute/get_backups.rb
@ -523,6 +524,7 @@ Gem::Specification.new do |s|
lib/fog/slicehost/requests/compute/get_images.rb
lib/fog/slicehost/requests/compute/get_slice.rb
lib/fog/slicehost/requests/compute/get_slices.rb
lib/fog/slicehost/requests/compute/get_zones.rb
lib/fog/slicehost/requests/compute/reboot_slice.rb
lib/fog/terremark.rb
lib/fog/terremark/bin.rb

View file

@ -12,18 +12,13 @@ module Fog
def end_element(name)
case name
when 'address'
@slice['addresses'] ||= []
@slice['addresses'] << @value
when 'backup-id', 'flavor-id', 'id', 'image-id', 'progress'
@slice[name] = @value.to_i
when 'bw-in', 'bw-out'
@slice[name] = @value.to_f
when 'name', 'status'
@slice[name] = @value
when 'slice'
@response['slices'] << @slice
@slice = {}
when 'ttl', 'id'
@zone[name] = @value.to_i
when 'active', 'origin'
@zone[name] = @value
when 'zone'
@response['zones'] << @zone
@zone = {}
end
end