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

[openstack|compute] Fixed creating image of a server

This commit is contained in:
Alvin Garcia 2012-03-27 17:43:42 +08:00 committed by Nelvin Driz
parent 9a0a5f2da2
commit 79c49d1cc0

View file

@ -9,7 +9,7 @@ module Fog
'metadata' => metadata
}}
data = server_action(server_id, body)
image_id = data.headers["Location"].scan(/.*\/(.*)/).flatten
image_id = data.headers["Location"].scan(/.*\/(.*)/).flatten[0]
get_image_details(image_id)
end