def hardware_info
      config_response = conf_file_data
      return config_response unless config_response.successful?

      response = Response.new :code => 0, :data => {}

      response.data['cpus'] = 1

      { 'cpus' => 'numvcpus', 'memory' => 'memsize' }.each_pair do |k,v|
        unless config_response.data[v].blank?
          response.data[k] = config_response.data[v].to_i
        end
      end

      response
    end
def hardware_info
      config_response = conf_file_data
      return config_response unless config_response.successful?

      response = Response.new :code => 0, :data => {}

      response.data['cpus'] = 1

      { 'cpus' => 'numvcpus', 'memory' => 'memsize' }.each_pair do |k,v|
        unless config_response.data[v].blank?
          response.data[k] = config_response.data[v].to_i
        end
      end

      response
    end
Public: Provides virtual hardware info the VM

 Examples:

   @vm.hardware_info.data
   # => {'cpus' => 2, 'memory' => 1024}

 Returns a Response with the result.
 If successful, the Response's data attribute will be a Hash with the
 info found.
 If there is an error, an unsuccessful Response will be returned.