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

PowerShell - Nano Server Compatibility

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • powershell
    • Windows Nano Server TP5

    Description

      2 issues have been filed against the DSC module that pertain to Nano server, but also affect PowerShell module:

      Looking at the commit history, the PowerShell module didn't historically use -Sta per https://github.com/puppetlabs/puppetlabs-powershell/blob/88c03084d2a6af4d853d01254255d8a87b117ccc/lib/puppet/provider/exec/powershell.rb#L67. It appears picked up its command line parameters from the work done on the DSC module. The DSC module had -Sta added in https://github.com/puppetlabs/puppetlabs-dsc/commit/86e42ec50acb894c6ed137d33d6da00d23266675 and there is no explanation as to why. It might have been added while trying to avoid entering a deadlock in what was poorly written threading code; the issue was later resolved, and -Sta probably should have been removed.

      According to the .NET docs for WaitHandle.WaitOne(millisecondsTimeout):

      Calling this method overload is the same as calling the WaitOne(Int32, Boolean) overload and specifying false for exitContext.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ethan Ethan Brown
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support