fog 0.0.81 → 0.0.82
Sign up to get free protection for your applications and to get access to all the features.
- data/fog.gemspec +1 -1
- data/lib/fog.rb +1 -1
- data/lib/fog/aws/models/ec2/volume.rb +4 -3
- metadata +2 -2
data/fog.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
7
7
|
## If your rubyforge_project name is different, then edit it and comment out
|
8
8
|
## the sub! line in the Rakefile
|
9
9
|
s.name = 'fog'
|
10
|
-
s.version = '0.0.
|
10
|
+
s.version = '0.0.82'
|
11
11
|
s.date = '2010-04-27'
|
12
12
|
s.rubyforge_project = 'fog'
|
13
13
|
|
data/lib/fog.rb
CHANGED
@@ -22,9 +22,6 @@ module Fog
|
|
22
22
|
def initialize(attributes = {})
|
23
23
|
# assign server first to prevent race condition with new_record?
|
24
24
|
self.server = attributes.delete(:server)
|
25
|
-
if attributes['attachmentSet']
|
26
|
-
attributes.merge!(attributes.delete('attachmentSet').first || {})
|
27
|
-
end
|
28
25
|
super
|
29
26
|
end
|
30
27
|
|
@@ -67,6 +64,10 @@ module Fog
|
|
67
64
|
|
68
65
|
private
|
69
66
|
|
67
|
+
def attachmentSet=(new_attachment_set)
|
68
|
+
merge_attributes(new_attachment_set.first || {})
|
69
|
+
end
|
70
|
+
|
70
71
|
def attach(new_server)
|
71
72
|
if new_record?
|
72
73
|
@server = new_server
|