-
Notifications
You must be signed in to change notification settings - Fork 84
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
Bug 1526887 - Handle case when whitelist/blacklist set to "" #609
Conversation
Changes Unknown when pulling 607d155 on shawn-hurley:bug-1526887 into ** on openshift:master**. |
Changes Unknown when pulling 56be204 on shawn-hurley:bug-1526887 into ** on openshift:master**. |
pkg/registries/filter.go
Outdated
@@ -62,6 +61,10 @@ func compileRegexp(regexStrs []string) ([]*regexp.Regexp, []failedRegexp) { | |||
failedRegexps := []failedRegexp{} | |||
|
|||
for _, str := range regexStrs { | |||
if str == "" { | |||
log.Debugf("ignoring empty string that was set as regex string") |
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.
How about: "Ignoring empty whitelist or blacklist regex."
Changes Unknown when pulling 416df5c on shawn-hurley:bug-1526887 into ** on openshift:master**. |
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.
ACK
…ft#609) * Bug 1526887 - Handle whitelist set to "" * removing bad log, because we are updating this file. * addressing PR comments around log wording.
Describe what this PR does and why we need it:
Handles case when the yaml looks like
Changes proposed in this pull request
""
Which issue this PR fixes (This will close that issue when PR gets merged)
Bug 1526887