{"action":"opened","issue":{"url":"https://api.github.com/repos/domcleal/foreman_param_lookup/issues/2","labels_url":"https://api.github.com/repos/domcleal/foreman_param_lookup/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/domcleal/foreman_param_lookup/issues/2/comments","events_url":"https://api.github.com/repos/domcleal/foreman_param_lookup/issues/2/events","html_url":"https://github.com/domcleal/foreman_param_lookup/issues/2","id":96661649,"number":2,"title":"Plugin Does Not Seem to Work in Foreman 1.7+","user":{"login":"jstuart","id":163032,"avatar_url":"https://avatars.githubusercontent.com/u/163032?v=3","gravatar_id":"","url":"https://api.github.com/users/jstuart","html_url":"https://github.com/jstuart","followers_url":"https://api.github.com/users/jstuart/followers","following_url":"https://api.github.com/users/jstuart/following{/other_user}","gists_url":"https://api.github.com/users/jstuart/gists{/gist_id}","starred_url":"https://api.github.com/users/jstuart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstuart/subscriptions","organizations_url":"https://api.github.com/users/jstuart/orgs","repos_url":"https://api.github.com/users/jstuart/repos","events_url":"https://api.github.com/users/jstuart/events{/privacy}","received_events_url":"https://api.github.com/users/jstuart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-22T20:55:59Z","updated_at":"2015-07-22T20:55:59Z","closed_at":null,"body":"Using both Foreman 1.7(.5) and Foreman 1.8(.2) the param_lookup endpoint does not return any information about classes that are not attached to a given host.\r\n\r\nFor example, given a host foo.local, which includes modules named bar and baz, but does not include another configured module named qux, the following output is expected:\r\n```\r\n$ curl http://foreman/param_lookup?host=foo.local&class=qux\r\n--- \r\n  qux:\r\n    param1: value\r\n    param2: \"another value\"\r\n```\r\n\r\nIn 1.7+, the following output is actually returned:\r\n```\r\n$ curl http://foreman/param_lookup?host=foo.local&class=qux\r\n--- \r\n  bar:\r\n  baz:\r\n```\r\n\r\nLooking up included classes works as expected:\r\n```\r\n$ curl http://foreman/param_lookup?host=foo.local&class=bar\r\n--- \r\n  bar:\r\n    param1: value\r\n    param2: \"another value\"\r\n  baz:\r\n```\r\n\r\nAnd:\r\n```\r\n$ curl http://foreman/param_lookup?host=foo.local&class=baz\r\n--- \r\n  bar:\r\n  baz:\r\n    param1: value\r\n    param2: \"another value\"\r\n```\r\n\r\nThis seems to be fairly easy to reproduce.  I am happy to help troubleshoot in any way I can."}}