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

puppetlabs/chocolatey : Incorrect assertion change of versioning

    XMLWordPrintable

Details

    • Bug
    • Status: Accepted
    • Normal
    • Resolution: Unresolved
    • None
    • None
    • chocolatey
    • Needs Assessment

    Description

      Basic Info
      Module Version: 2.0.2
      Puppet Version: 3.7.3
      OS Name/Version: 2012r2

      Describe your issue in as much detail as possible...
      Attempting to downgrade chocolatey (albeit incorrectly using the source => attribute), appears to be a success, even though it fails. Both puppet and choco seem to agree there were no issue.

      Desired Behavior:
      Throw an error.

      Actual Behavior:
      Does not throw an error.

      package { 'chocolatey':
        ensure          => '0.10.3',
        require         => Class['chocolatey'],
        provider        => chocolatey,
        source          => 'http://es-artifactory.lab.beer.town/artifactory/chocolatey-local/chocolatey.0.10.3.nupkg',
        install_options => ['--ignore-dependencies', '--allowemptychecksum',
          '--cache-location=C:\ProgramData\PuppetLabs\choco', '--force', '--allow-downgrade' ]
      }
      Debug: Prefetching chocolatey resources for package
      Debug: Executing 'C:\ProgramData\chocolatey\bin\choco.exe pin list'
      Debug: Executing 'C:\ProgramData\chocolatey\bin\choco.exe list -lo -r'
      Debug: Executing 'C:\ProgramData\chocolatey\bin\choco.exe pin remove -n chocolatey'
      Debug: Executing 'C:\ProgramData\chocolatey\bin\choco.exe upgrade chocolatey --version 0.10.3 -y -source http://es-artifactory.lab.beer.town/artifactory/chocolatey-local/chocolatey.0.10.3.nupkg --ignore-dependencies --allow-e
      mpty-checksums --allowemptychecksum --cache-location=C:\ProgramData\PuppetLabs\choco --force --allow-downgrade --ignore-package-exit-codes'
      Notice: /Stage[main]/Main/Package[chocolatey]/ensure: ensure changed '0.10.5' to '0.10.3'
      Debug: /Package[chocolatey]: The container Class[Main] will propagate my refresh event
       
       
      C:\Users\Administrator>choco -v
      0.10.5
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            tek0011 Jeff Sparrow
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Zendesk Support