Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-10433

Zypper provider doesn't recognize --no-gpg-checks as global option

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 5.5.19
    • Fix Version/s: PUP 6.16.0, PUP 5.5.21
    • Component/s: Types and Providers
    • Environment:
    • Template:
      PUP Bug Template
    • Team:
      Night's Watch
    • Story Points:
      2
    • Sprint:
      NW - 2020-05-13
    • Method Found:
      Customer Feedback
    • Zendesk Ticket IDs:
      38929
    • Zendesk Ticket Count:
      1
    • Release Notes:
      Enhancement
    • Release Notes Summary:
      Hide
      Allow `--no-gpg-checks` to be passed as an item to install_options property for zypper package provider.
      For backward compatibility `--no-gpg-check` was not removed.
      Show
      Allow `--no-gpg-checks` to be passed as an item to install_options property for zypper package provider. For backward compatibility `--no-gpg-check` was not removed.
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet Version: 5.5.19**

      Desired Behavior: When running the below code, it should recognize the following install option as a global option.

       

      package { $foo:
      ensure => installed,
      install_options => ['--no-gpg-checks'],
      }

       

      Actual Behavior:

      It appends the option to the end of the zypper command, and errors out when read as a sub-command option.

      Workaround:

      Using the --no-gpg-check variant (note the lack of an S at the end) is recognized as a global zypper option, relevant code here. This issue is closely related to PUP-4090.

      A note on discoverability: The Zypper help output and manual only lists the "checks" variant of the option.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mihai.buzgau Mihai Buzgau
              Reporter:
              miranda.streeter Miranda Streeter
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support