Skip to content

Commit

Permalink
Update Policy creation 'towhat' field documentation
Browse files Browse the repository at this point in the history
Original bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1659899

Messaging bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1663562

With the above bug, it was determined that the documentation - which
was used to test the Policy create action in the API - for the `towhat`
value was not reflective of a valid value for that field.

This change updates the documentation to reflect recent changes which
added an inclusion whitelist for `towhat` values on creation of Policies.

Relevant PRs:
Inclusion list: https://github.com/ManageIQ/manageiq/pull/18032/files
Error messaging: ManageIQ/manageiq#18338
  • Loading branch information
coderbydesign committed Jan 8, 2019
1 parent 7cdd403 commit d6fdc7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/reference/policies.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ POST /api/policies
"name" : "sample_policy",
"description" : "Sample Policy",
"mode" : "compliance",
"towhat" : "ManageIQ::Providers::Redhat::InfraManager",
"towhat" : "Vm",
"condition_ids" : [11, 12],
"policy_contents" : [
{
Expand Down

0 comments on commit d6fdc7a

Please sign in to comment.