Revision 4edcd9ff src/cli/one_helper.rb

View differences:

src/cli/one_helper.rb
294 294
    end
295 295

  
296 296
    def OpenNebulaHelper.name_to_id(name, poolname, user_flag=-2)
297
        return 0, name if name.match(/^[0123456789]+$/)
297
        return 0, name.to_i if name.match(/^[0123456789]+$/)
298 298

  
299 299
        client = OpenNebula::Client.new
300 300
        # TBD user_flag

Also available in: Unified diff