class HammerCLIKatello::HostCollection::CopyCommand

Public Instance Methods

request_params() click to toggle source
Calls superclass method
# 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