Class: HammerCLIForeman::SmartClassParametersBriefList

Inherits:
ListCommand
  • Object
show all
Defined in:
lib/hammer_cli_foreman/smart_class_parameter.rb

Constant Summary

Constants inherited from ListCommand

ListCommand::DEFAULT_PER_PAGE

Instance Method Summary collapse

Methods inherited from ListCommand

#adapter, command_name, #execute, #extend_data

Instance Method Details

#retrieve_dataObject



15
16
17
18
19
20
21
# File 'lib/hammer_cli_foreman/smart_class_parameter.rb', line 15

def retrieve_data
  res = super
  # FIXME: API returns doubled records, probably just if filtered by puppetclasses
  # it seems group by environment is missing
  # having the uniq to fix that
  HammerCLI::Output::RecordCollection.new(res.uniq, :meta => res.meta)
end