Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Used to fix with RHEL 8.5 and Ubuntu 20.04 LTS.
If not added the condition to 9, will get error like these:
Info: Using configured environment 'predev'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Info: Caching catalog for txxx-dev1.abc.x.y
Info: Applying configuration version 'txy-predev-ccbb56e1823'
Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: Invalid option --enablesssd: unknown option
Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns:
Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: Usage: /bin/authselect select PROFILE-ID [OPTIONS...]
Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns:
Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: Command options:
Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: -f, --force Enforce changes
Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: -b Backup system files before activating profile
Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: (generate unique name)
Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: --backup=NAME Backup system files before activating profile
Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: --nobackup Do not backup system files when --force is set
Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: -q, --quiet Do not print profile requirements
Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns:
Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: Common options:
Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: --debug Print error messages
Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: --trace Print trace messages
Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: --warn Print warning messages
Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns:
Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: Help options:
Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: -?, --help Show this help message
Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: --usage Display brief usage message
Notice: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: [error] Unable to parse command arguments
Error: '/bin/authselect select sssd --enablesssd --enablesssdauth --enablemkhomedir --force' returned 1 instead of one of [0]
Error: /Stage[main]/Sssd_test/Exec[authselect-mkhomedir]/returns: change from 'notrun' to ['0'] failed: '/bin/authselect select sssd --enablesssd --enablesssdauth --enablemkhomedir --force' returned 1 instead of one of [0]
Notice: Applied catalog in 4.79 seconds