server/lib/deltacloud/drivers/terremark/terremark_driver.rb
#--
# CONVERT IMAGE
#--
#gets a vapp_template from a catalog and makes it a Image
CONVERT IMAGE
gets a vapp_template from a catalog and makes it a Image
CONVERT IMAGE gets a vapp_template from a catalog and makes it a Image
def convert_image(catalog_vapp_template, account_name)
    name = catalog_vapp_template['name']
    arch = "n/a" 
    Image.new( {
                  :id => catalog_vapp_template['href'].split('/').last,
                  :name => catalog_vapp_template['name'],
                  :architecture => arch,
                  :owner_id => account_name,
                  :description => catalog_vapp_template['name']
               })
  end
def convert_image ( catalog_vapp_template , account_name ) name = catalog_vapp_template [ 'name' ] arch = "n/a" Image . new ( { :id => catalog_vapp_template [ 'href' ] . split ( '/' ) . last , :name => catalog_vapp_template [ 'name' ] , :architecture => arch , :owner_id => account_name , :description => catalog_vapp_template [ 'name' ] } ) end
CONVERT IMAGE
gets a vapp_template from a catalog and makes it a Image
CONVERT IMAGE gets a vapp_template from a catalog and makes it a Image
#much fudging ensues #arch = name.scan(/(36|24).bit/).first #k enuf o'that now! #Leaving out entirely as we don't get one from terremark (could parse but its a fudge)
catalog_vapp_template
<not_specific>
account_name
<not_specific>