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

Powershell Modules 2.x does not honor the cwd paramter

    XMLWordPrintable

    Details

    • Template:
    • Acceptance Criteria:
      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
    • Story Points:
      2
    • Sprint:
      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

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

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support