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

vcsrepo ignores "force" for git repos

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • vcsrepo
    • None
    • Needs Assessment

    Description

      currently vcsrepo's "force" parameter in puppet-3.8 seem to return string thus always evaluating to "true":
      https://github.com/puppetlabs/puppetlabs-vcsrepo/blob/master/lib/puppet/type/vcsrepo.rb#L229
      vs
      https://github.com/puppetlabs/puppet/blob/master/lib/puppet/type/file.rb#L215

      as a result any value in "force" is treated as true thus always forcing removal of existing directory

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              droopy4096 Dmytro
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support