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 #10275: When we add/remove/update a tag to a Directive/Rule, we get an empty event log #1533

Conversation

fanf
Copy link
Member

@fanf fanf commented Feb 24, 2017

@@ -161,7 +161,7 @@ class DirectiveUnserialisationImpl extends DirectiveUnserialisation {
priority <- (directive \ "priority").headOption.flatMap(s => tryo { s.text.toInt } ) ?~! ("Missing or bad attribute 'priority' in entry type directive : " + xml)
isSystem <- (directive \ "isSystem").headOption.flatMap(s => tryo { s.text.toBoolean } ) ?~! ("Missing attribute 'isSystem' in entry type directive : " + xml)
policyMode = (directive \ "policyMode").headOption.flatMap(s => PolicyMode.parse(s.text) )
directiveIds = (directive \ "directiveIds" \ "id" ).map( n => DirectiveId( n.text ) ).toSet
Copy link
Member

Choose a reason for hiding this comment

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

funny ... should be empty quite often ...

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, not sur what was the intent of that code, since directiveIds is never used... Perhaps some debug code that get kept, no idea.

Copy link
Member

Choose a reason for hiding this comment

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

I think it was a copy paste from Rule diff

@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit 21077d6 into Normation:branches/rudder/4.1 Feb 27, 2017
@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@fanf fanf deleted the bug_10275/when_we_add_remove_update_a_tag_to_a_directive_rule_we_get_an_empty_event_log branch March 15, 2024 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants