{"action":"created","comment":{"url":"https://api.github.com/repos/theforeman/foreman/pulls/comments/59553449","id":59553449,"diff_hunk":"@@ -1,15 +1,13 @@\n module Nic::WithAttachedDevices\n   extend ActiveSupport::Concern\n+  include Exportable","path":"app/models/nic/with_attached_devices.rb","position":3,"original_position":3,"commit_id":"a2c782ae6bd2139dc53089e3c10966ba323f54af","original_commit_id":"5c189307a9f2333004518814a3a3ad2677008a15","user":{"login":"stbenjam","id":429763,"avatar_url":"https://avatars.githubusercontent.com/u/429763?v=3","gravatar_id":"","url":"https://api.github.com/users/stbenjam","html_url":"https://github.com/stbenjam","followers_url":"https://api.github.com/users/stbenjam/followers","following_url":"https://api.github.com/users/stbenjam/following{/other_user}","gists_url":"https://api.github.com/users/stbenjam/gists{/gist_id}","starred_url":"https://api.github.com/users/stbenjam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stbenjam/subscriptions","organizations_url":"https://api.github.com/users/stbenjam/orgs","repos_url":"https://api.github.com/users/stbenjam/repos","events_url":"https://api.github.com/users/stbenjam/events{/privacy}","received_events_url":"https://api.github.com/users/stbenjam/received_events","type":"User","site_admin":false},"body":"Good catch, fixed","created_at":"2016-04-13T14:05:55Z","updated_at":"2016-04-13T14:05:55Z","html_url":"https://github.com/theforeman/foreman/pull/3399#discussion_r59553449","pull_request_url":"https://api.github.com/repos/theforeman/foreman/pulls/3399","_links":{"self":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/comments/59553449"},"html":{"href":"https://github.com/theforeman/foreman/pull/3399#discussion_r59553449"},"pull_request":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/3399"}}},"pull_request":{"url":"https://api.github.com/repos/theforeman/foreman/pulls/3399","id":65498267,"html_url":"https://github.com/theforeman/foreman/pull/3399","diff_url":"https://github.com/theforeman/foreman/pull/3399.diff","patch_url":"https://github.com/theforeman/foreman/pull/3399.patch","issue_url":"https://api.github.com/repos/theforeman/foreman/issues/3399","number":3399,"state":"open","locked":false,"title":"fixes #14509 - refactor enc_output to be a generic exporter","user":{"login":"stbenjam","id":429763,"avatar_url":"https://avatars.githubusercontent.com/u/429763?v=3","gravatar_id":"","url":"https://api.github.com/users/stbenjam","html_url":"https://github.com/stbenjam","followers_url":"https://api.github.com/users/stbenjam/followers","following_url":"https://api.github.com/users/stbenjam/following{/other_user}","gists_url":"https://api.github.com/users/stbenjam/gists{/gist_id}","starred_url":"https://api.github.com/users/stbenjam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stbenjam/subscriptions","organizations_url":"https://api.github.com/users/stbenjam/orgs","repos_url":"https://api.github.com/users/stbenjam/repos","events_url":"https://api.github.com/users/stbenjam/events{/privacy}","received_events_url":"https://api.github.com/users/stbenjam/received_events","type":"User","site_admin":false},"body":"This is the outcome of https://github.com/theforeman/foreman_remote_execution/pull/165, where we wrote a generic exporter to export Job Templates.  Because EncOutput is similar in core, we thought it might be worthwhile to contribute this to core as a more generic replacement.\r\n\r\nThis essentially creates the same output for foreman_interfaces and foreman_subnets in the ENC, with the exception that blank non-false values are excluded now.  That could be changed if there's value to include them.","created_at":"2016-04-06T16:41:03Z","updated_at":"2016-04-13T14:05:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4b7b9cf55205fbd327d4e65d00465d27f81c3a89","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/theforeman/foreman/pulls/3399/commits","review_comments_url":"https://api.github.com/repos/theforeman/foreman/pulls/3399/comments","review_comment_url":"https://api.github.com/repos/theforeman/foreman/pulls/comments{/number}","comments_url":"https://api.github.com/repos/theforeman/foreman/issues/3399/comments","statuses_url":"https://api.github.com/repos/theforeman/foreman/statuses/a2c782ae6bd2139dc53089e3c10966ba323f54af","head":{"label":"stbenjam:14509","ref":"14509","sha":"a2c782ae6bd2139dc53089e3c10966ba323f54af","user":{"login":"stbenjam","id":429763,"avatar_url":"https://avatars.githubusercontent.com/u/429763?v=3","gravatar_id":"","url":"https://api.github.com/users/stbenjam","html_url":"https://github.com/stbenjam","followers_url":"https://api.github.com/users/stbenjam/followers","following_url":"https://api.github.com/users/stbenjam/following{/other_user}","gists_url":"https://api.github.com/users/stbenjam/gists{/gist_id}","starred_url":"https://api.github.com/users/stbenjam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stbenjam/subscriptions","organizations_url":"https://api.github.com/users/stbenjam/orgs","repos_url":"https://api.github.com/users/stbenjam/repos","events_url":"https://api.github.com/users/stbenjam/events{/privacy}","received_events_url":"https://api.github.com/users/stbenjam/received_events","type":"User","site_admin":false},"repo":{"id":14199116,"name":"foreman","full_name":"stbenjam/foreman","owner":{"login":"stbenjam","id":429763,"avatar_url":"https://avatars.githubusercontent.com/u/429763?v=3","gravatar_id":"","url":"https://api.github.com/users/stbenjam","html_url":"https://github.com/stbenjam","followers_url":"https://api.github.com/users/stbenjam/followers","following_url":"https://api.github.com/users/stbenjam/following{/other_user}","gists_url":"https://api.github.com/users/stbenjam/gists{/gist_id}","starred_url":"https://api.github.com/users/stbenjam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stbenjam/subscriptions","organizations_url":"https://api.github.com/users/stbenjam/orgs","repos_url":"https://api.github.com/users/stbenjam/repos","events_url":"https://api.github.com/users/stbenjam/events{/privacy}","received_events_url":"https://api.github.com/users/stbenjam/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stbenjam/foreman","description":"an application that automates the lifecycle of servers ","fork":true,"url":"https://api.github.com/repos/stbenjam/foreman","forks_url":"https://api.github.com/repos/stbenjam/foreman/forks","keys_url":"https://api.github.com/repos/stbenjam/foreman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stbenjam/foreman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stbenjam/foreman/teams","hooks_url":"https://api.github.com/repos/stbenjam/foreman/hooks","issue_events_url":"https://api.github.com/repos/stbenjam/foreman/issues/events{/number}","events_url":"https://api.github.com/repos/stbenjam/foreman/events","assignees_url":"https://api.github.com/repos/stbenjam/foreman/assignees{/user}","branches_url":"https://api.github.com/repos/stbenjam/foreman/branches{/branch}","tags_url":"https://api.github.com/repos/stbenjam/foreman/tags","blobs_url":"https://api.github.com/repos/stbenjam/foreman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stbenjam/foreman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stbenjam/foreman/git/refs{/sha}","trees_url":"https://api.github.com/repos/stbenjam/foreman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stbenjam/foreman/statuses/{sha}","languages_url":"https://api.github.com/repos/stbenjam/foreman/languages","stargazers_url":"https://api.github.com/repos/stbenjam/foreman/stargazers","contributors_url":"https://api.github.com/repos/stbenjam/foreman/contributors","subscribers_url":"https://api.github.com/repos/stbenjam/foreman/subscribers","subscription_url":"https://api.github.com/repos/stbenjam/foreman/subscription","commits_url":"https://api.github.com/repos/stbenjam/foreman/commits{/sha}","git_commits_url":"https://api.github.com/repos/stbenjam/foreman/git/commits{/sha}","comments_url":"https://api.github.com/repos/stbenjam/foreman/comments{/number}","issue_comment_url":"https://api.github.com/repos/stbenjam/foreman/issues/comments{/number}","contents_url":"https://api.github.com/repos/stbenjam/foreman/contents/{+path}","compare_url":"https://api.github.com/repos/stbenjam/foreman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stbenjam/foreman/merges","archive_url":"https://api.github.com/repos/stbenjam/foreman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stbenjam/foreman/downloads","issues_url":"https://api.github.com/repos/stbenjam/foreman/issues{/number}","pulls_url":"https://api.github.com/repos/stbenjam/foreman/pulls{/number}","milestones_url":"https://api.github.com/repos/stbenjam/foreman/milestones{/number}","notifications_url":"https://api.github.com/repos/stbenjam/foreman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stbenjam/foreman/labels{/name}","releases_url":"https://api.github.com/repos/stbenjam/foreman/releases{/id}","deployments_url":"https://api.github.com/repos/stbenjam/foreman/deployments","created_at":"2013-11-07T09:08:03Z","updated_at":"2014-07-17T04:36:45Z","pushed_at":"2016-04-13T14:05:42Z","git_url":"git://github.com/stbenjam/foreman.git","ssh_url":"git@github.com:stbenjam/foreman.git","clone_url":"https://github.com/stbenjam/foreman.git","svn_url":"https://github.com/stbenjam/foreman","homepage":"http://theforeman.org","size":33850,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"theforeman:develop","ref":"develop","sha":"9621a9eec21f9c95cc18c528c49fc5fa3bac5523","user":{"login":"theforeman","id":1439844,"avatar_url":"https://avatars.githubusercontent.com/u/1439844?v=3","gravatar_id":"","url":"https://api.github.com/users/theforeman","html_url":"https://github.com/theforeman","followers_url":"https://api.github.com/users/theforeman/followers","following_url":"https://api.github.com/users/theforeman/following{/other_user}","gists_url":"https://api.github.com/users/theforeman/gists{/gist_id}","starred_url":"https://api.github.com/users/theforeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theforeman/subscriptions","organizations_url":"https://api.github.com/users/theforeman/orgs","repos_url":"https://api.github.com/users/theforeman/repos","events_url":"https://api.github.com/users/theforeman/events{/privacy}","received_events_url":"https://api.github.com/users/theforeman/received_events","type":"Organization","site_admin":false},"repo":{"id":258750,"name":"foreman","full_name":"theforeman/foreman","owner":{"login":"theforeman","id":1439844,"avatar_url":"https://avatars.githubusercontent.com/u/1439844?v=3","gravatar_id":"","url":"https://api.github.com/users/theforeman","html_url":"https://github.com/theforeman","followers_url":"https://api.github.com/users/theforeman/followers","following_url":"https://api.github.com/users/theforeman/following{/other_user}","gists_url":"https://api.github.com/users/theforeman/gists{/gist_id}","starred_url":"https://api.github.com/users/theforeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theforeman/subscriptions","organizations_url":"https://api.github.com/users/theforeman/orgs","repos_url":"https://api.github.com/users/theforeman/repos","events_url":"https://api.github.com/users/theforeman/events{/privacy}","received_events_url":"https://api.github.com/users/theforeman/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/theforeman/foreman","description":"an application that automates the lifecycle of servers ","fork":false,"url":"https://api.github.com/repos/theforeman/foreman","forks_url":"https://api.github.com/repos/theforeman/foreman/forks","keys_url":"https://api.github.com/repos/theforeman/foreman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theforeman/foreman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theforeman/foreman/teams","hooks_url":"https://api.github.com/repos/theforeman/foreman/hooks","issue_events_url":"https://api.github.com/repos/theforeman/foreman/issues/events{/number}","events_url":"https://api.github.com/repos/theforeman/foreman/events","assignees_url":"https://api.github.com/repos/theforeman/foreman/assignees{/user}","branches_url":"https://api.github.com/repos/theforeman/foreman/branches{/branch}","tags_url":"https://api.github.com/repos/theforeman/foreman/tags","blobs_url":"https://api.github.com/repos/theforeman/foreman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theforeman/foreman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theforeman/foreman/git/refs{/sha}","trees_url":"https://api.github.com/repos/theforeman/foreman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theforeman/foreman/statuses/{sha}","languages_url":"https://api.github.com/repos/theforeman/foreman/languages","stargazers_url":"https://api.github.com/repos/theforeman/foreman/stargazers","contributors_url":"https://api.github.com/repos/theforeman/foreman/contributors","subscribers_url":"https://api.github.com/repos/theforeman/foreman/subscribers","subscription_url":"https://api.github.com/repos/theforeman/foreman/subscription","commits_url":"https://api.github.com/repos/theforeman/foreman/commits{/sha}","git_commits_url":"https://api.github.com/repos/theforeman/foreman/git/commits{/sha}","comments_url":"https://api.github.com/repos/theforeman/foreman/comments{/number}","issue_comment_url":"https://api.github.com/repos/theforeman/foreman/issues/comments{/number}","contents_url":"https://api.github.com/repos/theforeman/foreman/contents/{+path}","compare_url":"https://api.github.com/repos/theforeman/foreman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theforeman/foreman/merges","archive_url":"https://api.github.com/repos/theforeman/foreman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theforeman/foreman/downloads","issues_url":"https://api.github.com/repos/theforeman/foreman/issues{/number}","pulls_url":"https://api.github.com/repos/theforeman/foreman/pulls{/number}","milestones_url":"https://api.github.com/repos/theforeman/foreman/milestones{/number}","notifications_url":"https://api.github.com/repos/theforeman/foreman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theforeman/foreman/labels{/name}","releases_url":"https://api.github.com/repos/theforeman/foreman/releases{/id}","deployments_url":"https://api.github.com/repos/theforeman/foreman/deployments","created_at":"2009-07-23T15:07:00Z","updated_at":"2016-04-13T00:30:18Z","pushed_at":"2016-04-13T14:05:43Z","git_url":"git://github.com/theforeman/foreman.git","ssh_url":"git@github.com:theforeman/foreman.git","clone_url":"https://github.com/theforeman/foreman.git","svn_url":"https://github.com/theforeman/foreman","homepage":"http://theforeman.org","size":65112,"stargazers_count":984,"watchers_count":984,"language":"Ruby","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":503,"mirror_url":null,"open_issues_count":68,"forks":503,"open_issues":68,"watchers":984,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/3399"},"html":{"href":"https://github.com/theforeman/foreman/pull/3399"},"issue":{"href":"https://api.github.com/repos/theforeman/foreman/issues/3399"},"comments":{"href":"https://api.github.com/repos/theforeman/foreman/issues/3399/comments"},"review_comments":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/3399/comments"},"review_comment":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/3399/commits"},"statuses":{"href":"https://api.github.com/repos/theforeman/foreman/statuses/a2c782ae6bd2139dc53089e3c10966ba323f54af"}}}}