Jira (BOLT-1412) 'script run' CLI silently ignores arguments containing equal signs

9 views
Skip to first unread message

Sean Millichamp (JIRA)

unread,
Jun 20, 2019, 9:36:03 AM6/20/19
to puppe...@googlegroups.com
Sean Millichamp created an issue
 
Puppet Task Runner / Bug BOLT-1412
'script run' CLI silently ignores arguments containing equal signs
Issue Type: Bug Bug
Affects Versions: BOLT 1.23.0
Assignee: Unassigned
Components: CLI
Created: 2019/06/20 6:35 AM
Priority: Normal Normal
Reporter: Sean Millichamp

When trying to run an adhoc script I discovered that the Bolt CLI seems to silently consume and ignore arguments passed intended to be used with a "script run". These should be valid arguments to pass. In this case, I was trying to pass a LDAP DN, which had a number of equal signs.

You can see the CLI option vanish when running bolt in debug mode:

bolt script run myscript.sh string1 a=b string2 -n testnode

...

Starting: script myscript.sh on testnode
Running script myscript.sh with '["string1", "string2"]' on ["testnode"]

...

Displaying the contents of ARGV confirms the argument with the equal sign was never received by the script.

Invoking the run_script function from within a Bolt plan does not suffer from the same issue, leading me to believe it is a problem with the CLI parsing somewhere.

Thanks!

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

David Kramer (JIRA)

unread,
Jul 30, 2019, 12:49:03 PM7/30/19
to puppe...@googlegroups.com

Cas Donoghue (JIRA)

unread,
Jul 30, 2019, 7:30:04 PM7/30/19
to puppe...@googlegroups.com

Lucy Wyman (JIRA)

unread,
Jul 30, 2019, 9:03:02 PM7/30/19
to puppe...@googlegroups.com

Chris Cowell (JIRA)

unread,
Aug 1, 2019, 1:26:03 PM8/1/19
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages