puppetlabs / puppetlabs-apt

Puppet module to help manage Apt
https://forge.puppetlabs.com/puppetlabs/apt
Apache License 2.0
216 stars 462 forks source link

apt_key can not deal with options #1102

Closed tuxmea closed 1 year ago

tuxmea commented 1 year ago

Describe the Bug

We want to use the apt_key resource type using source and we want to provide proxy options.

Expected Behavior

Proxy is used

Environment

Additional Context

see https://github.com/puppetlabs/puppetlabs-apt/blob/main/lib/puppet/provider/apt_key/apt_key.rb#L194 This if statement matches only if source and content are both nil. If either one is set the options will not be added to the command.

kenyon commented 1 year ago

Looks the same as #1037.

tuxmea commented 1 year ago

duplicate of #1037