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 #4231, Rule categories in Rule creation popup are now up to date #383

Conversation

VinceMacBuche
Copy link
Member

No description provided.

root
, category
, {(r : RuleCategory) =>
root = roCategoryRepository.getRootCategory.get
Copy link
Member

Choose a reason for hiding this comment

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

The way "var root" is managed is no good, because in a system error (LDAP pb, or things like that), it will blow up in exception.
So, either we manage the root in a Box, or we pass it as a paramater of the rule displayer (and charge to the caller to manage the error), but we don't use Option.get without managing the case where we can't get.

@VinceMacBuche
Copy link
Member Author

I updated the pull request, error case are now correctly handled.

I boxed the Root var in RuleDisplayer

@fanf
Copy link
Member

fanf commented Dec 11, 2013

Great, thanks!

fanf added a commit that referenced this pull request Dec 11, 2013
…up_not_updated

Fixes #4231, Rule categories in Rule creation popup are now up to date
@fanf fanf merged commit f5f3165 into Normation:branches/rudder/2.9 Dec 11, 2013
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