-
Notifications
You must be signed in to change notification settings - Fork 38
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
Fixes #7461: classes_* methods should refuse to copy classes to a prefix which is an empty string #272
Fixes #7461: classes_* methods should refuse to copy classes to a prefix which is an empty string #272
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,13 +31,18 @@ bundle agent _classes_success(class_prefix) | |
"prefix" slist => { "promise_kept" }; | ||
"suffix" slist => { "ok", "reached", "kept", "not_repaired" }; | ||
|
||
destination_exists:: | ||
"${prefix}_local" | ||
string => "${prefix}_${class_prefix}", | ||
classes => always("${prefix}_${class_prefix}"); | ||
|
||
"local_${suffix}" | ||
string => "${class_prefix}_${suffix}", | ||
classes => always("${class_prefix}_${suffix}"); | ||
|
||
classes: | ||
"destination_exists" not => strcmp("${class_prefix}", ""); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. shouldn't it report a warning if an empty string is passed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In master we use this property in every generic method so that calls don't fail when this.caller_promisers doesn't exist. So it could be a warning, but not in the general case. |
||
|
||
} | ||
|
||
|
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.
Why do you change the ordering ?
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.
Because the original ordering made no sense. Now, the order matches the order of the calls above.