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 #6176: cannot use \"enabled\" json parameter in Directive API #799

Conversation

VinceMacBuche
Copy link
Member

@@ -573,7 +573,7 @@ case class RestExtractorService (
name <- extractOneValueJson(json, "displayName")(convertToMinimalSizeString(3))
shortDescription <- extractOneValueJson(json, "shortDescription")()
longDescription <- extractOneValueJson(json, "longDescription")()
enabled <- extractOneValueJson(json, "enabled")( convertToBoolean)
enabled <- extractJsonBoolean(json, "enabled")
Copy link
Member

Choose a reason for hiding this comment

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

doesn't it prevent it from using it outside the json ?

Copy link
Member Author

Choose a reason for hiding this comment

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

json and 'params' are treated separetely (look line 547)

Copy link
Member

Choose a reason for hiding this comment

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

oh, ok !

ncharles added a commit that referenced this pull request Jan 26, 2015
…d_json_parameter_in_directive_api

Fixes #6176: cannot use \"enabled\" json parameter in Directive API
@ncharles ncharles merged commit 437e323 into Normation:branches/rudder/2.10 Jan 26, 2015
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants