Skip to content
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 #8194: file_check_ on branch master use deprecated _logger interface #343

Conversation

ncharles
Copy link
Member

@@ -44,13 +49,17 @@ bundle agent file_check_special(file_name, file_type)
methods:
exists_special::
"file_exists_and_is_special"
usebundle => _classes_success("${old_class_prefix}");
"file_exists_and_is_special"
usebundle => _classes_success("${class_prefix}");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We would normally only call the _classes_success method for the new class_prefix if the has_promiser_stack class is defined. See for example https://github.com/Normation/ncf/blob/master/tree/30_generic_methods/_service_check_running_src.cf#L50.

@jooooooon
Copy link
Member

This looks good, aside from the one query about protecting use of the new class_prefix with has_promiser_stack. Maybe @peckpeck can tell us how important this is?

@jooooooon jooooooon merged commit a06ed85 into Normation:master Apr 27, 2016
@jooooooon
Copy link
Member

@peckpeck confirmed the class{success,failure} methods don't care

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants