Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-3565

Powershell Modules 2.x does not honor the cwd paramter

    XMLWordPrintable

Details

    • Hide
      • The exec provider should set the working directory to the Resource 'cwd' parameter
      • If Resource 'cwd' parameter is not set, it should default to working directory of the parent process
      • Updated Readme
      • Non-trivial script execution
      Show
      The exec provider should set the working directory to the Resource 'cwd' parameter If Resource 'cwd' parameter is not set, it should default to working directory of the parent process Updated Readme Non-trivial script execution
    • 2
    • Windows 2016-07-13, Windows 2016-09-07

    Description

      From https://github.com/puppetlabs/puppetlabs-powershell/issues/123

      After upgrade to 2.0.1 version of plugin i notice that cwd param broken, and dont change path to value.
      Example script:

        exec { "cwd test":
          cwd      => 'c:/windows/',
          command  => 'get-location',
          provider =>  powershell,
        }
      

      At 1.0.6 version all works fine.

      Attachments

        Issue Links

          Activity

            People

              erick Erick Banks
              glenn.sarti Glenn Sarti
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support