rundeck-plugins / docker

Providers for docker
28 stars 23 forks source link

Parameters sent to docker plugin including spaces are truncated #37

Open fgutierrezz opened 5 years ago

fgutierrezz commented 5 years ago

When a rundeck option is a text string with space(as highlighted below), and nested in the ansible --extra-vars, it will be trunked or cause job failure if trying to use quote(either single or double quote) to escape the space.the same command works on unix command line, docker exec on unix and on rundeck directly without docker plugin. example of the command.

Example of the command line: docker exec -d rundeck-agent ansible localhost -c local -i 'localhost,' -m include_role -a name=servicenow --extra-vars "servicenow_username=admin servicenow_password=password servicenow_instance_name=instance_name servicenow_ticket_action=new servicenow_ticket_type=sc_req_item servicenow_ticket_subjectline='this is a test ticket from rundeck' servicenow_ticket_comments='this is a test comment from command line docker'"

ltamaster commented 5 years ago

@fgutierrezz do you have a job example for this case?