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

vcsrepo ignores "force" for git repos

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: vcsrepo
    • Labels:
      None
    • Template:
    • QA Risk Assessment:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support