Class: HammerCLIForemanDiscovery::DiscoveredHost::FactsCommand

Inherits:
HammerCLIForeman::AssociatedResourceListCommand
  • Object
show all
Defined in:
lib/hammer_cli_foreman_discovery/discovery.rb

Instance Method Summary collapse

Instance Method Details

#request_paramsObject



56
57
58
59
60
# File 'lib/hammer_cli_foreman_discovery/discovery.rb', line 56

def request_params
  params = super
  params['host_id'] = params.delete('discovered_host_id')
  params
end

#send_requestObject



52
53
54
# File 'lib/hammer_cli_foreman_discovery/discovery.rb', line 52

def send_request
  HammerCLIForeman::Fact::ListCommand.unhash_facts(super)
end