# File lib/fission/vm.rb, line 162 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