Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot remove all options. #49

Open
traylenator opened this issue Jan 11, 2024 · 0 comments
Open

Cannot remove all options. #49

traylenator opened this issue Jan 11, 2024 · 0 comments

Comments

@traylenator
Copy link

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 7
  • Ruby: 2.7
  • Distribution: RHEL9
  • Module version: 4.0.0

How to reproduce (e.g Puppet code you use)

pam{'Add pam_xdg_runtime_dir':
  ensure    => $_state_ensure,
  service   => 'sshd',
  type      => 'session',                                                  
  control   => 'optional',
  module    => 'pam_xdg_runtime_dir.so',
  position  => 'before *[type="session" and module="pam_krb5_cc_move.so"]',
  arguments  =>['debug'],
  require   => Pam['Add pam_krb5_cc_move'],
}

This correctly adds

session    optional      pam_xdg_runtime_dir.so debug

After re-running puppet with arguments as [] or undef the existing arguments are not removed.

What are you seeing

Seems to be not possible to delete all existing arguments.

What behaviour did you expect instead

That [] or undef would delete all of the arguments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant