mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
properly parse hash/value for instance#instance_state=
This commit is contained in:
parent
d9b7c29761
commit
a5c9db5c21
1 changed files with 5 additions and 1 deletions
|
@ -111,7 +111,11 @@ module Fog
|
|||
private
|
||||
|
||||
def instance_state=(new_instance_state)
|
||||
@instance_state = new_instance_state['name']
|
||||
if new_instance_state.is_a?(Hash)
|
||||
@instance_state = new_instance_state['name']
|
||||
else
|
||||
@instance_state = new_instance_state
|
||||
end
|
||||
end
|
||||
|
||||
def instances=(new_instances)
|
||||
|
|
Loading…
Add table
Reference in a new issue