Method: OpenNebula::Image#chtype
- Defined in:
- lib/opennebula/image.rb
#chtype(type) ⇒ nil, OpenNebula::Error
Changes the Image type
201 202 203 204 205 206 207 208 |
# File 'lib/opennebula/image.rb', line 201 def chtype(type) return Error.new('ID not defined') if !@pe_id rc = @client.call(IMAGE_METHODS[:chtype], @pe_id, type) rc = nil if !OpenNebula.is_error?(rc) return rc end |