From d2b3052cd28b95ab3750fe0fd58c7277f3f795ea Mon Sep 17 00:00:00 2001 From: archanaserver Date: Thu, 19 Oct 2023 13:02:08 +0530 Subject: [PATCH] Remove 'desc from RegistrationCommandsController --- .../v2/registration_commands_controller.rb | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/app/controllers/api/v2/registration_commands_controller.rb b/app/controllers/api/v2/registration_commands_controller.rb index 8c8bb6984a9e..6ee74d5524e5 100644 --- a/app/controllers/api/v2/registration_commands_controller.rb +++ b/app/controllers/api/v2/registration_commands_controller.rb @@ -8,19 +8,19 @@ class RegistrationCommandsController < V2::BaseController api :POST, "/registration_commands", N_("Generate global registration command") param :registration_command, Hash, required: false, action_aware: true do - param :organization_id, :number, desc: N_("ID of the Organization to register the host in") - param :location_id, :number, desc: N_("ID of the Location to register the host in") - param :hostgroup_id, :number, desc: N_("ID of the Host group to register the host in") - param :operatingsystem_id, :number, desc: N_("ID of the Operating System to register the host in. Operating system must have a `host_init_config` template assigned") - param :smart_proxy_id, :number, desc: N_("ID of the Smart Proxy. This Proxy must have enabled both the 'Templates' and 'Registration' features") - param :setup_insights, :bool, desc: N_("Set 'host_registration_insights' parameter for the host. If it is set to true, insights client will be installed and registered on Red Hat family operating systems") - param :setup_remote_execution, :bool, desc: N_("Set 'host_registration_remote_execution' parameter for the host. If it is set to true, SSH keys will be installed on the host") - param :jwt_expiration, :number, desc: N_("Expiration of the authorization token (in hours)") - param :insecure, :bool, desc: N_("Enable insecure argument for the initial curl") - param :packages, String, desc: N_("Packages to install on the host when registered. Can be set by `host_packages` parameter, example: `pkg1 pkg2`") - param :update_packages, :bool, desc: N_("Update all packages on the host") - param :repo, String, desc: N_("Repository URL / details, for example for Debian OS family: 'deb http://deb.example.com/ buster 1.0', for Red Hat and SUSE OS family: 'http://yum.theforeman.org/client/latest/el8/x86_64/'") - param :repo_gpg_key_url, String, desc: N_("URL of the GPG key for the repository") + param :organization_id, :number + param :location_id, :number + param :hostgroup_id, :number + param :operatingsystem_id, :number + param :smart_proxy_id, :number + param :setup_insights, :bool + param :setup_remote_execution, :bool + param :jwt_expiration, :number + param :insecure, :bool + param :packages, String + param :update_packages, :bool + param :repo, String + param :repo_gpg_key_url, String end def create unless os_with_template?