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

Puppetlabs-dsc : Powershell instance function does not provide timeout parameter

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: dsc
    • Labels:
      None
    • Template:
    • Acceptance Criteria:
      Hide

      Testing: add spec test
      Code change
      Add to reference docs

      Show
      Testing: add spec test Code change Add to reference docs
    • Team:
      Windows
    • Story Points:
      1
    • Sprint:
      Windows 2019-01-09
    • QA Risk Assessment:
      Needs Assessment

      Description

      Basic Info
      Module Version: 1.7.0
      Puppet Version: 5.5.3
      OS Name/Version: Not relevant

      In the DSC module there is a pipe_timeout variable added to the instantiation of the Powershell manager.

      https://github.com/puppetlabs/puppetlabs-dsc/commit/4afa11eb68423c0465f4bd4d16bcf78b6f5827cc#diff-b32132ee8a7b2768ba34f3d4b4e4484a

       

       

      On line 77 of https://github.com/puppetlabs/puppetlabs-dsc/blob/master/lib/puppet/provider/base_dsc/powershell.rb

      there is no pipe_timeout variable added to the calling function instance.

      PuppetX::Dsc::PowerShellManager.instance(manager_args, debug_output)

      Desired Behavior:

      I expect the pipe_timeout variable to be accessible from outside the module. Preferably by using the timeout variable of the Exec class:

       
      exec { 'something':
      ...
      provider => powershell,
      timeout => 60,
       }

       

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              william.hurt William Hurt
              Reporter:
              bartbons Bart Bons
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support