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

modulepath argument does not handle paths with spaces

    Details

    • Type: CI Blocker
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: BOLT 0.21.8
    • Fix Version/s: None
    • Component/s: CLI, Windows
    • Labels:
      None
    • CI Pipeline/s:
      modules
    • Sprint:
      Bolt Kanban
    • QA Risk Assessment:
      Needs Assessment

      Description

      When trying to run the following.

      /cygdrive/c/Program\ Files/Puppet\ Labs/Puppet/sys/ruby/bin/bolt.bat task run service --no-ssl --modulepath 'C:/ProgramData/PuppetLabs/code/environments/production/modules;C:/ProgramData/PuppetLabs/code/modules;C:/Program Files/Puppet Labs/Puppet/puppet/modules' --nodes localhost --password root action=start name=W32Time --transport winrm --user Administrator
      'C:\Program' is not recognized as an internal or external command,
      operable program or batch file. 

      I amended the command with escaping and wrapping the argument in quotes.

      -bash-4.3$ /cygdrive/c/Program\ Files/Puppet\ Labs/Puppet/sys/ruby/bin/bolt.bat task run service --no-ssl -m 'C:/ProgramData/PuppetLabs/code/environments/production/modules;C:/ProgramData/PuppetLabs/code/modules;C:/Program\ Files/Puppet\ Labs/Puppet/puppet/modules;' --nodes localhost --password root action=start name=W32Time --transport winrm --user Administrator
      'C:\Program' is not recognized as an internal or external command,
      operable program or batch file.
      

      Removing the final path with the spaces, bolt runs fine. (ignore the auth issue)

      -bash-4.3$ /cygdrive/c/Program\ Files/Puppet\ Labs/Puppet/sys/ruby/bin/bolt.bat task run service --no-ssl -m 'C:/ProgramData/PuppetLabs/code/environments/production/modules;C:/ProgramData/PuppetLabs/code/modules;' --nodes localhost --password root action=start name=W32Time --transport winrm --user Administrator
      Started on localhost...
      Failed on localhost:
        Authentication failed for http://localhost:5985/wsman
      Failed on 1 node: localhost
      Ran on 1 node in 0.36 seconds
      -bash-4.3$ -
      

      This is currently blocking our puppet 6 nightly testing. Being tracked inĀ https://tickets.puppetlabs.com/browse/FM-7304

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                nick Nick Lewis
                Reporter:
                tp Thomas Honey
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: