{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/14260","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/14260/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/14260/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/14260/events","html_url":"https://github.com/ansible/ansible/pull/14260","id":130702234,"number":14260,"title":"No need to creat the Play instance in adhoc script","user":{"login":"jeffrey4l","id":354768,"avatar_url":"https://avatars.githubusercontent.com/u/354768?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffrey4l","html_url":"https://github.com/jeffrey4l","followers_url":"https://api.github.com/users/jeffrey4l/followers","following_url":"https://api.github.com/users/jeffrey4l/following{/other_user}","gists_url":"https://api.github.com/users/jeffrey4l/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffrey4l/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffrey4l/subscriptions","organizations_url":"https://api.github.com/users/jeffrey4l/orgs","repos_url":"https://api.github.com/users/jeffrey4l/repos","events_url":"https://api.github.com/users/jeffrey4l/events{/privacy}","received_events_url":"https://api.github.com/users/jeffrey4l/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-02T14:44:31Z","updated_at":"2016-02-02T22:54:37Z","closed_at":"2016-02-02T22:54:37Z","pull_request":{"url":"https://api.github.com/repos/ansible/ansible/pulls/14260","html_url":"https://github.com/ansible/ansible/pull/14260","diff_url":"https://github.com/ansible/ansible/pull/14260.diff","patch_url":"https://github.com/ansible/ansible/pull/14260.patch"},"body":"the play instance is generated by a factory method"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/178873618","html_url":"https://github.com/ansible/ansible/pull/14260#issuecomment-178873618","issue_url":"https://api.github.com/repos/ansible/ansible/issues/14260","id":178873618,"user":{"login":"abadger","id":209242,"avatar_url":"https://avatars.githubusercontent.com/u/209242?v=3","gravatar_id":"","url":"https://api.github.com/users/abadger","html_url":"https://github.com/abadger","followers_url":"https://api.github.com/users/abadger/followers","following_url":"https://api.github.com/users/abadger/following{/other_user}","gists_url":"https://api.github.com/users/abadger/gists{/gist_id}","starred_url":"https://api.github.com/users/abadger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abadger/subscriptions","organizations_url":"https://api.github.com/users/abadger/orgs","repos_url":"https://api.github.com/users/abadger/repos","events_url":"https://api.github.com/users/abadger/events{/privacy}","received_events_url":"https://api.github.com/users/abadger/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T22:54:37Z","updated_at":"2016-02-02T22:54:37Z","body":"Although this shouldn't cause any problems, I think we're agreed that really there's no reason to have factory functions here.  So instead of this we should merge the load() method into __init__().  If you'd like to submit a PR to do that we can look at merging that."}}