-
Notifications
You must be signed in to change notification settings - Fork 89
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
Fix ValueError: excluded_subtrees must be a non-empty list or None #481
Fix ValueError: excluded_subtrees must be a non-empty list or None #481
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution! Could you please add a changelog fragment? Thanks.
You also need to adjust _check_nameConstraints
; the lines
current_nc_perm = [to_text(altname) for altname in current_nc_ext.value.permitted_subtrees] if current_nc_ext else []
current_nc_excl = [to_text(altname) for altname in current_nc_ext.value.excluded_subtrees] if current_nc_ext else []
need to be changed to
current_nc_perm = [to_text(altname) for altname in current_nc_ext.value.permitted_subtrees or []] if current_nc_ext else []
current_nc_excl = [to_text(altname) for altname in current_nc_ext.value.excluded_subtrees or []] if current_nc_ext else []
06a92b4
to
46dac64
Compare
changelogs/fragments/481-fix-excluded_subtrees-must-be-a-non-empty-list-or-None.yml
Outdated
Show resolved
Hide resolved
46dac64
to
a8315ac
Compare
Backport to stable-1: 💚 backport PR created✅ Backport PR branch: Backported as #482 🤖 @patchback |
) (cherry picked from commit b29f238)
@lisongmin thanks a lot for reporting and fixing this! |
SUMMARY
Fixes excluded_subtrees must be a non-empty list or None
ISSUE TYPE
COMPONENT NAME
openssl_csr
ADDITIONAL INFORMATION
When config
community.crypto.openssl_csr
withname_constraints_permitted
option, the error occur as follow: