Class: HammerCLIKatello::HostCollection::CopyCommand

Inherits:
CreateCommand
  • Object
show all
Defined in:
lib/hammer_cli_katello/host_collection.rb

Instance Method Summary collapse

Methods included from ResolverCommons

included

Instance Method Details

#request_paramsObject



132
133
134
135
136
137
# File 'lib/hammer_cli_katello/host_collection.rb', line 132

def request_params
  params = super
  # This is a hack to keep Hammer consistent without changing the inconsistent API V2
  params['name'] = options[HammerCLI.option_accessor_name('new_name')] if params['id']
  params
end