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

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

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • None
    • dsc
    • None
    • Hide

      Testing: add spec test
      Code change
      Add to reference docs

      Show
      Testing: add spec test Code change Add to reference docs
    • Windows
    • 1
    • Windows 2019-01-09
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support