{"action":"created","comment":{"url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/pulls/comments/31150984","id":31150984,"diff_hunk":"@@ -185,15 +205,29 @@ def startZenoss(self):\n     '''\n     # execute a command and pocesses its stdout/stderr\n     # all output of subcommand execution are piped to subprocess stderr.\n-    def exec_cmd(self, cmd):\n+    def exec_cmd(self, cmd, status_key=None, status_max=0, status_re=None, to_log=True):\n         log.debug('Executing %s ...' % cmd)\n \n         proc = subprocess.Popen(cmd, shell=True, stderr=subprocess.STDOUT)\n \n+        # log every output\n+        _status_cnt = 0\n         while True:\n             _line = proc.stdout.readline()","path":"ZenPacks/zenoss/Import4/migration.py","position":61,"original_position":61,"commit_id":"f908d666545b6a7ec51f481e2cebf58aacc3705d","original_commit_id":"f908d666545b6a7ec51f481e2cebf58aacc3705d","user":{"login":"alapidas","id":2326611,"avatar_url":"https://avatars.githubusercontent.com/u/2326611?v=3","gravatar_id":"","url":"https://api.github.com/users/alapidas","html_url":"https://github.com/alapidas","followers_url":"https://api.github.com/users/alapidas/followers","following_url":"https://api.github.com/users/alapidas/following{/other_user}","gists_url":"https://api.github.com/users/alapidas/gists{/gist_id}","starred_url":"https://api.github.com/users/alapidas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alapidas/subscriptions","organizations_url":"https://api.github.com/users/alapidas/orgs","repos_url":"https://api.github.com/users/alapidas/repos","events_url":"https://api.github.com/users/alapidas/events{/privacy}","received_events_url":"https://api.github.com/users/alapidas/received_events","type":"User","site_admin":false},"body":"Should be wrapped with a ```if proc.stdout```","created_at":"2015-05-27T16:13:08Z","updated_at":"2015-05-27T16:13:08Z","html_url":"https://github.com/zenoss/ZenPacks.zenoss.Import4/pull/41#discussion_r31150984","pull_request_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/pulls/41","_links":{"self":{"href":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/pulls/comments/31150984"},"html":{"href":"https://github.com/zenoss/ZenPacks.zenoss.Import4/pull/41#discussion_r31150984"},"pull_request":{"href":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/pulls/41"}}},"pull_request":{"url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/pulls/41","id":36320728,"html_url":"https://github.com/zenoss/ZenPacks.zenoss.Import4/pull/41","diff_url":"https://github.com/zenoss/ZenPacks.zenoss.Import4/pull/41.diff","patch_url":"https://github.com/zenoss/ZenPacks.zenoss.Import4/pull/41.patch","issue_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/issues/41","number":41,"state":"open","locked":false,"title":"Feature/log 3","user":{"login":"achow-zenoss","id":10052077,"avatar_url":"https://avatars.githubusercontent.com/u/10052077?v=3","gravatar_id":"","url":"https://api.github.com/users/achow-zenoss","html_url":"https://github.com/achow-zenoss","followers_url":"https://api.github.com/users/achow-zenoss/followers","following_url":"https://api.github.com/users/achow-zenoss/following{/other_user}","gists_url":"https://api.github.com/users/achow-zenoss/gists{/gist_id}","starred_url":"https://api.github.com/users/achow-zenoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achow-zenoss/subscriptions","organizations_url":"https://api.github.com/users/achow-zenoss/orgs","repos_url":"https://api.github.com/users/achow-zenoss/repos","events_url":"https://api.github.com/users/achow-zenoss/events{/privacy}","received_events_url":"https://api.github.com/users/achow-zenoss/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-27T16:09:56Z","updated_at":"2015-05-27T16:13:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"34c4266d714d56cf9bd3f3efed5a6138a5faa397","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/pulls/41/commits","review_comments_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/pulls/41/comments","review_comment_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/issues/41/comments","statuses_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/statuses/f908d666545b6a7ec51f481e2cebf58aacc3705d","head":{"label":"zenoss:feature/log_3","ref":"feature/log_3","sha":"f908d666545b6a7ec51f481e2cebf58aacc3705d","user":{"login":"zenoss","id":243767,"avatar_url":"https://avatars.githubusercontent.com/u/243767?v=3","gravatar_id":"","url":"https://api.github.com/users/zenoss","html_url":"https://github.com/zenoss","followers_url":"https://api.github.com/users/zenoss/followers","following_url":"https://api.github.com/users/zenoss/following{/other_user}","gists_url":"https://api.github.com/users/zenoss/gists{/gist_id}","starred_url":"https://api.github.com/users/zenoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenoss/subscriptions","organizations_url":"https://api.github.com/users/zenoss/orgs","repos_url":"https://api.github.com/users/zenoss/repos","events_url":"https://api.github.com/users/zenoss/events{/privacy}","received_events_url":"https://api.github.com/users/zenoss/received_events","type":"Organization","site_admin":false},"repo":{"id":27790443,"name":"ZenPacks.zenoss.Import4","full_name":"zenoss/ZenPacks.zenoss.Import4","owner":{"login":"zenoss","id":243767,"avatar_url":"https://avatars.githubusercontent.com/u/243767?v=3","gravatar_id":"","url":"https://api.github.com/users/zenoss","html_url":"https://github.com/zenoss","followers_url":"https://api.github.com/users/zenoss/followers","following_url":"https://api.github.com/users/zenoss/following{/other_user}","gists_url":"https://api.github.com/users/zenoss/gists{/gist_id}","starred_url":"https://api.github.com/users/zenoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenoss/subscriptions","organizations_url":"https://api.github.com/users/zenoss/orgs","repos_url":"https://api.github.com/users/zenoss/repos","events_url":"https://api.github.com/users/zenoss/events{/privacy}","received_events_url":"https://api.github.com/users/zenoss/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zenoss/ZenPacks.zenoss.Import4","description":"Europa Import support from 4.x systems","fork":false,"url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4","forks_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/forks","keys_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/teams","hooks_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/hooks","issue_events_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/issues/events{/number}","events_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/events","assignees_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/assignees{/user}","branches_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/branches{/branch}","tags_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/tags","blobs_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/git/refs{/sha}","trees_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/statuses/{sha}","languages_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/languages","stargazers_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/stargazers","contributors_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/contributors","subscribers_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/subscribers","subscription_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/subscription","commits_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/commits{/sha}","git_commits_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/git/commits{/sha}","comments_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/comments{/number}","issue_comment_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/issues/comments{/number}","contents_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/contents/{+path}","compare_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/merges","archive_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/downloads","issues_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/issues{/number}","pulls_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/pulls{/number}","milestones_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/milestones{/number}","notifications_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/labels{/name}","releases_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/releases{/id}","created_at":"2014-12-09T22:28:16Z","updated_at":"2015-05-08T14:55:15Z","pushed_at":"2015-05-27T16:09:56Z","git_url":"git://github.com/zenoss/ZenPacks.zenoss.Import4.git","ssh_url":"git@github.com:zenoss/ZenPacks.zenoss.Import4.git","clone_url":"https://github.com/zenoss/ZenPacks.zenoss.Import4.git","svn_url":"https://github.com/zenoss/ZenPacks.zenoss.Import4","homepage":null,"size":1250,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"develop"}},"base":{"label":"zenoss:develop","ref":"develop","sha":"e19a4d01e782c3b3ab61bf20ef165cd8761477ee","user":{"login":"zenoss","id":243767,"avatar_url":"https://avatars.githubusercontent.com/u/243767?v=3","gravatar_id":"","url":"https://api.github.com/users/zenoss","html_url":"https://github.com/zenoss","followers_url":"https://api.github.com/users/zenoss/followers","following_url":"https://api.github.com/users/zenoss/following{/other_user}","gists_url":"https://api.github.com/users/zenoss/gists{/gist_id}","starred_url":"https://api.github.com/users/zenoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenoss/subscriptions","organizations_url":"https://api.github.com/users/zenoss/orgs","repos_url":"https://api.github.com/users/zenoss/repos","events_url":"https://api.github.com/users/zenoss/events{/privacy}","received_events_url":"https://api.github.com/users/zenoss/received_events","type":"Organization","site_admin":false},"repo":{"id":27790443,"name":"ZenPacks.zenoss.Import4","full_name":"zenoss/ZenPacks.zenoss.Import4","owner":{"login":"zenoss","id":243767,"avatar_url":"https://avatars.githubusercontent.com/u/243767?v=3","gravatar_id":"","url":"https://api.github.com/users/zenoss","html_url":"https://github.com/zenoss","followers_url":"https://api.github.com/users/zenoss/followers","following_url":"https://api.github.com/users/zenoss/following{/other_user}","gists_url":"https://api.github.com/users/zenoss/gists{/gist_id}","starred_url":"https://api.github.com/users/zenoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenoss/subscriptions","organizations_url":"https://api.github.com/users/zenoss/orgs","repos_url":"https://api.github.com/users/zenoss/repos","events_url":"https://api.github.com/users/zenoss/events{/privacy}","received_events_url":"https://api.github.com/users/zenoss/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zenoss/ZenPacks.zenoss.Import4","description":"Europa Import support from 4.x systems","fork":false,"url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4","forks_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/forks","keys_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/teams","hooks_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/hooks","issue_events_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/issues/events{/number}","events_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/events","assignees_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/assignees{/user}","branches_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/branches{/branch}","tags_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/tags","blobs_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/git/refs{/sha}","trees_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/statuses/{sha}","languages_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/languages","stargazers_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/stargazers","contributors_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/contributors","subscribers_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/subscribers","subscription_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/subscription","commits_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/commits{/sha}","git_commits_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/git/commits{/sha}","comments_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/comments{/number}","issue_comment_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/issues/comments{/number}","contents_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/contents/{+path}","compare_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/merges","archive_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/downloads","issues_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/issues{/number}","pulls_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/pulls{/number}","milestones_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/milestones{/number}","notifications_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/labels{/name}","releases_url":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/releases{/id}","created_at":"2014-12-09T22:28:16Z","updated_at":"2015-05-08T14:55:15Z","pushed_at":"2015-05-27T16:09:56Z","git_url":"git://github.com/zenoss/ZenPacks.zenoss.Import4.git","ssh_url":"git@github.com:zenoss/ZenPacks.zenoss.Import4.git","clone_url":"https://github.com/zenoss/ZenPacks.zenoss.Import4.git","svn_url":"https://github.com/zenoss/ZenPacks.zenoss.Import4","homepage":null,"size":1250,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/pulls/41"},"html":{"href":"https://github.com/zenoss/ZenPacks.zenoss.Import4/pull/41"},"issue":{"href":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/issues/41"},"comments":{"href":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/zenoss/ZenPacks.zenoss.Import4/statuses/f908d666545b6a7ec51f481e2cebf58aacc3705d"}}}}