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

[OpenStack|compute] default metadata to empy hash

Calling metadata.each in the `save` method will make a spurious request to
the nova endpoint, unless metadata has been initialized to an empty hash.
This commit is contained in:
Todd Willey 2011-10-11 17:04:58 -04:00
parent 87d07b7787
commit 21499d8908

View file

@ -27,6 +27,7 @@ module Fog
def initialize(attributes={})
@connection = attributes[:connection]
attributes[:metadata] = {}
super
end