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:
parent
87d07b7787
commit
21499d8908
1 changed files with 1 additions and 0 deletions
|
@ -27,6 +27,7 @@ module Fog
|
|||
|
||||
def initialize(attributes={})
|
||||
@connection = attributes[:connection]
|
||||
attributes[:metadata] = {}
|
||||
super
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue