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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • PUP 5.5.19
    • PUP 6.16.0, PUP 5.5.21
    • Types and Providers
    • Night's Watch
    • 2
    • NW - 2020-05-13
    • Customer Feedback
    • 38929
    • 1
    • Enhancement
    • 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.
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support