1
0
Fork 0
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:
Wesley Beary 2009-10-23 09:30:19 -07:00
parent d9b7c29761
commit a5c9db5c21

View file

@ -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)