name: Pull request
about: Extend the template so that users can specify multiple sudo option lines per user.
Describe the change
Allow the sudo.j2 template to work with sudo_options being either a string like previous versions, or a list in case we need to define multiple sudo options for a single user.
Testing
Tested by extending the current tests to test that the template generates a valid sudoers file for multiple sudo options (tests where already in place for a single option)
Allow multiple sudo option lines per user
name: Pull request about: Extend the template so that users can specify multiple sudo option lines per user.
Describe the change Allow the
sudo.j2
template to work withsudo_options
being either a string like previous versions, or a list in case we need to define multiple sudo options for a single user.Testing Tested by extending the current tests to test that the template generates a valid sudoers file for multiple sudo options (tests where already in place for a single option)