lib/process/cloud/process/images.rb in lorj_cloud-0.1.0 vs lib/process/cloud/process/images.rb in lorj_cloud-0.1.1

- old
+ new

@@ -19,19 +19,19 @@ # --------------------------------------------------------------------------- # Image management # --------------------------------------------------------------------------- class CloudProcess def forj_get_or_create_image(sCloudObj, hParams) - image_name = hParams[:image_name] + image_name = hParams['server#image_name'] PrcLib.state("Searching for image '%s'", image_name) search_the_image(sCloudObj, { :name => image_name }, hParams) # No creation possible. end def search_the_image(sCloudObj, sQuery, hParams) - image_name = hParams[:image_name] + image_name = hParams['server#image_name'] images = forj_query_image(sCloudObj, sQuery, hParams) case images.length when 0 PrcLib.info("No image '%s' found", image_name) nil @@ -93,7 +93,7 @@ # :update_e => :forj_update_image # :delete_e => :forj_delete_image ) obj_needs :CloudObject, :compute_connection - obj_needs :data, :image_name, :for => [:create_e] + obj_needs :data, 'server#image_name', :for => [:create_e] end