Revision ce1bd841 src/cli/oneimage

View differences:

src/cli/oneimage
266 266
        table=ShowTable.new(ShowTableImage)
267 267
        table.print_help
268 268
    end
269
    
270
    def special_options(opts, options)
271
        opts.on_tail("-n", "--no-cp", "Do not copy the source") do |o|
272
            options[:no_cp]=true
273
        end
274
    end
275 269
end
276 270

  
277 271

  
......
330 324
    
331 325
    image = OpenNebula::Image.new(OpenNebula::Image.build_xml, get_one_client)
332 326

  
333
    result = img_repo.create(image, template, !ops[:no_cp])    
327
    result = img_repo.create(image, template)    
334 328
    if is_successful?(result)
335 329
        puts "ID: " + image.id.to_s if ops[:verbose]
336 330
    end

Also available in: Unified diff