Uploaded image for project: 'Puppet Task Runner'
  1. Puppet Task Runner
  2. BOLT-159

Bolt commands on Powershell require triple quoting

    Details

    • Template:
    • Sprint:
      Bolt Kanban
    • Method Found:
      Automated Test
    • Release Notes:
      Known Issue
    • Release Notes Summary:
      String segments in commands must be triple-quoted in PowerShell.
    • QA Risk Assessment:
      Needs Assessment

      Description

      This is a "gotcha" for bolt Powershell users.

      The following command that can be given to a bolt controller running *nix to be executed on *nix nodes via SSH is digested without fanfare:

      bolt command run 'echo "hi from $(hostname)"' --nodes my_nix_node
      

      ...needs to have the internal quoted command triple quoted when using Windows as a bolt controller to execute the command on *nix nodes via SSH:

      bolt command run 'echo """hi from $(hostname)"""' --nodes my_nix_node
      

      ...otherwise Powershell attempts to eat the command resulting in the following error.

      PS C:\Users\Administrator> bolt command run 'echo "hello from $(hostname)"' --nodes my_nix_node
      unknown argument(s) from, $(hostname)
      

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  ethan Ethan Brown
                  Reporter:
                  john.duarte John Duarte
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: