{"action":"created","comment":{"url":"https://api.github.com/repos/2gis/stf-utils/pulls/comments/70224362","id":70224362,"diff_hunk":"@@ -36,14 +36,14 @@ def __init__(self, host, common_api_path, oauth_token, device_spec, shutdown_emu\n     def connect_devices(self):\n         self.all_devices_are_connected = True\n         for device_group in self.device_groups:\n-            available_devices = self._get_available_devices()\n-            simply_available_devices = [d.get(\"serial\") for d in available_devices]\n-            log.info(\"Got avaliable devices for connect:\\n%s\" % simply_available_devices)\n             wanted_amount = int(device_group.get(\"wanted_amount\"))\n             actual_amount = len(device_group.get(\"connected_devices\"))\n             log.info(\"Trying connect devices... Wanted Amount: %s. Actual Amount: %s\" % (wanted_amount, actual_amount))\n             if actual_amount < wanted_amount:\n                 self.all_devices_are_connected = False\n+                available_devices = self._get_available_devices()\n+                simply_available_devices = [d.get(\"serial\") for d in available_devices]","path":"stf_connect/client.py","position":13,"original_position":13,"commit_id":"ff74f6e0aa5b009a1904f4c9ad71a07d8fa54d97","original_commit_id":"ff74f6e0aa5b009a1904f4c9ad71a07d8fa54d97","user":{"login":"rseek","id":12827469,"avatar_url":"https://avatars.githubusercontent.com/u/12827469?v=3","gravatar_id":"","url":"https://api.github.com/users/rseek","html_url":"https://github.com/rseek","followers_url":"https://api.github.com/users/rseek/followers","following_url":"https://api.github.com/users/rseek/following{/other_user}","gists_url":"https://api.github.com/users/rseek/gists{/gist_id}","starred_url":"https://api.github.com/users/rseek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rseek/subscriptions","organizations_url":"https://api.github.com/users/rseek/orgs","repos_url":"https://api.github.com/users/rseek/repos","events_url":"https://api.github.com/users/rseek/events{/privacy}","received_events_url":"https://api.github.com/users/rseek/received_events","type":"User","site_admin":false},"body":"а, это вообще уйдёт в другом МР..","created_at":"2016-07-11T09:12:33Z","updated_at":"2016-07-11T09:12:33Z","html_url":"https://github.com/2gis/stf-utils/pull/21#discussion_r70224362","pull_request_url":"https://api.github.com/repos/2gis/stf-utils/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/2gis/stf-utils/pulls/comments/70224362"},"html":{"href":"https://github.com/2gis/stf-utils/pull/21#discussion_r70224362"},"pull_request":{"href":"https://api.github.com/repos/2gis/stf-utils/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/2gis/stf-utils/pulls/21","id":76260815,"html_url":"https://github.com/2gis/stf-utils/pull/21","diff_url":"https://github.com/2gis/stf-utils/pull/21.diff","patch_url":"https://github.com/2gis/stf-utils/pull/21.patch","issue_url":"https://api.github.com/repos/2gis/stf-utils/issues/21","number":21,"state":"open","locked":false,"title":"Connect new devices after device lost","user":{"login":"sh0ked","id":3863442,"avatar_url":"https://avatars.githubusercontent.com/u/3863442?v=3","gravatar_id":"","url":"https://api.github.com/users/sh0ked","html_url":"https://github.com/sh0ked","followers_url":"https://api.github.com/users/sh0ked/followers","following_url":"https://api.github.com/users/sh0ked/following{/other_user}","gists_url":"https://api.github.com/users/sh0ked/gists{/gist_id}","starred_url":"https://api.github.com/users/sh0ked/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sh0ked/subscriptions","organizations_url":"https://api.github.com/users/sh0ked/orgs","repos_url":"https://api.github.com/users/sh0ked/repos","events_url":"https://api.github.com/users/sh0ked/events{/privacy}","received_events_url":"https://api.github.com/users/sh0ked/received_events","type":"User","site_admin":false},"body":"- if device was lost then we doesn't get state for device\r\n- if device was lost then we trying to connect new device by spec\r\n- if device was connected but state has not ready then we disconnect device ","created_at":"2016-07-05T11:51:18Z","updated_at":"2016-07-11T09:12:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fa9df7f2f2b702bb8a1ae6f9f54957105778b211","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/2gis/stf-utils/pulls/21/commits","review_comments_url":"https://api.github.com/repos/2gis/stf-utils/pulls/21/comments","review_comment_url":"https://api.github.com/repos/2gis/stf-utils/pulls/comments{/number}","comments_url":"https://api.github.com/repos/2gis/stf-utils/issues/21/comments","statuses_url":"https://api.github.com/repos/2gis/stf-utils/statuses/ff74f6e0aa5b009a1904f4c9ad71a07d8fa54d97","head":{"label":"2gis:connect-new-devices-after-device-lost","ref":"connect-new-devices-after-device-lost","sha":"ff74f6e0aa5b009a1904f4c9ad71a07d8fa54d97","user":{"login":"2gis","id":1481435,"avatar_url":"https://avatars.githubusercontent.com/u/1481435?v=3","gravatar_id":"","url":"https://api.github.com/users/2gis","html_url":"https://github.com/2gis","followers_url":"https://api.github.com/users/2gis/followers","following_url":"https://api.github.com/users/2gis/following{/other_user}","gists_url":"https://api.github.com/users/2gis/gists{/gist_id}","starred_url":"https://api.github.com/users/2gis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2gis/subscriptions","organizations_url":"https://api.github.com/users/2gis/orgs","repos_url":"https://api.github.com/users/2gis/repos","events_url":"https://api.github.com/users/2gis/events{/privacy}","received_events_url":"https://api.github.com/users/2gis/received_events","type":"Organization","site_admin":false},"repo":{"id":54374229,"name":"stf-utils","full_name":"2gis/stf-utils","owner":{"login":"2gis","id":1481435,"avatar_url":"https://avatars.githubusercontent.com/u/1481435?v=3","gravatar_id":"","url":"https://api.github.com/users/2gis","html_url":"https://github.com/2gis","followers_url":"https://api.github.com/users/2gis/followers","following_url":"https://api.github.com/users/2gis/following{/other_user}","gists_url":"https://api.github.com/users/2gis/gists{/gist_id}","starred_url":"https://api.github.com/users/2gis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2gis/subscriptions","organizations_url":"https://api.github.com/users/2gis/orgs","repos_url":"https://api.github.com/users/2gis/repos","events_url":"https://api.github.com/users/2gis/events{/privacy}","received_events_url":"https://api.github.com/users/2gis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/2gis/stf-utils","description":"Utils for Open Smartphone Test Farm (OpenSTF)","fork":false,"url":"https://api.github.com/repos/2gis/stf-utils","forks_url":"https://api.github.com/repos/2gis/stf-utils/forks","keys_url":"https://api.github.com/repos/2gis/stf-utils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/2gis/stf-utils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/2gis/stf-utils/teams","hooks_url":"https://api.github.com/repos/2gis/stf-utils/hooks","issue_events_url":"https://api.github.com/repos/2gis/stf-utils/issues/events{/number}","events_url":"https://api.github.com/repos/2gis/stf-utils/events","assignees_url":"https://api.github.com/repos/2gis/stf-utils/assignees{/user}","branches_url":"https://api.github.com/repos/2gis/stf-utils/branches{/branch}","tags_url":"https://api.github.com/repos/2gis/stf-utils/tags","blobs_url":"https://api.github.com/repos/2gis/stf-utils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/2gis/stf-utils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/2gis/stf-utils/git/refs{/sha}","trees_url":"https://api.github.com/repos/2gis/stf-utils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/2gis/stf-utils/statuses/{sha}","languages_url":"https://api.github.com/repos/2gis/stf-utils/languages","stargazers_url":"https://api.github.com/repos/2gis/stf-utils/stargazers","contributors_url":"https://api.github.com/repos/2gis/stf-utils/contributors","subscribers_url":"https://api.github.com/repos/2gis/stf-utils/subscribers","subscription_url":"https://api.github.com/repos/2gis/stf-utils/subscription","commits_url":"https://api.github.com/repos/2gis/stf-utils/commits{/sha}","git_commits_url":"https://api.github.com/repos/2gis/stf-utils/git/commits{/sha}","comments_url":"https://api.github.com/repos/2gis/stf-utils/comments{/number}","issue_comment_url":"https://api.github.com/repos/2gis/stf-utils/issues/comments{/number}","contents_url":"https://api.github.com/repos/2gis/stf-utils/contents/{+path}","compare_url":"https://api.github.com/repos/2gis/stf-utils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/2gis/stf-utils/merges","archive_url":"https://api.github.com/repos/2gis/stf-utils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/2gis/stf-utils/downloads","issues_url":"https://api.github.com/repos/2gis/stf-utils/issues{/number}","pulls_url":"https://api.github.com/repos/2gis/stf-utils/pulls{/number}","milestones_url":"https://api.github.com/repos/2gis/stf-utils/milestones{/number}","notifications_url":"https://api.github.com/repos/2gis/stf-utils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/2gis/stf-utils/labels{/name}","releases_url":"https://api.github.com/repos/2gis/stf-utils/releases{/id}","deployments_url":"https://api.github.com/repos/2gis/stf-utils/deployments","created_at":"2016-03-21T09:06:04Z","updated_at":"2016-06-15T14:42:38Z","pushed_at":"2016-07-11T07:10:48Z","git_url":"git://github.com/2gis/stf-utils.git","ssh_url":"git@github.com:2gis/stf-utils.git","clone_url":"https://github.com/2gis/stf-utils.git","svn_url":"https://github.com/2gis/stf-utils","homepage":null,"size":76,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":8,"default_branch":"master"}},"base":{"label":"2gis:master","ref":"master","sha":"4a48b21688e920e0107d4d6dc6a5fe92a672ddd4","user":{"login":"2gis","id":1481435,"avatar_url":"https://avatars.githubusercontent.com/u/1481435?v=3","gravatar_id":"","url":"https://api.github.com/users/2gis","html_url":"https://github.com/2gis","followers_url":"https://api.github.com/users/2gis/followers","following_url":"https://api.github.com/users/2gis/following{/other_user}","gists_url":"https://api.github.com/users/2gis/gists{/gist_id}","starred_url":"https://api.github.com/users/2gis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2gis/subscriptions","organizations_url":"https://api.github.com/users/2gis/orgs","repos_url":"https://api.github.com/users/2gis/repos","events_url":"https://api.github.com/users/2gis/events{/privacy}","received_events_url":"https://api.github.com/users/2gis/received_events","type":"Organization","site_admin":false},"repo":{"id":54374229,"name":"stf-utils","full_name":"2gis/stf-utils","owner":{"login":"2gis","id":1481435,"avatar_url":"https://avatars.githubusercontent.com/u/1481435?v=3","gravatar_id":"","url":"https://api.github.com/users/2gis","html_url":"https://github.com/2gis","followers_url":"https://api.github.com/users/2gis/followers","following_url":"https://api.github.com/users/2gis/following{/other_user}","gists_url":"https://api.github.com/users/2gis/gists{/gist_id}","starred_url":"https://api.github.com/users/2gis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2gis/subscriptions","organizations_url":"https://api.github.com/users/2gis/orgs","repos_url":"https://api.github.com/users/2gis/repos","events_url":"https://api.github.com/users/2gis/events{/privacy}","received_events_url":"https://api.github.com/users/2gis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/2gis/stf-utils","description":"Utils for Open Smartphone Test Farm (OpenSTF)","fork":false,"url":"https://api.github.com/repos/2gis/stf-utils","forks_url":"https://api.github.com/repos/2gis/stf-utils/forks","keys_url":"https://api.github.com/repos/2gis/stf-utils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/2gis/stf-utils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/2gis/stf-utils/teams","hooks_url":"https://api.github.com/repos/2gis/stf-utils/hooks","issue_events_url":"https://api.github.com/repos/2gis/stf-utils/issues/events{/number}","events_url":"https://api.github.com/repos/2gis/stf-utils/events","assignees_url":"https://api.github.com/repos/2gis/stf-utils/assignees{/user}","branches_url":"https://api.github.com/repos/2gis/stf-utils/branches{/branch}","tags_url":"https://api.github.com/repos/2gis/stf-utils/tags","blobs_url":"https://api.github.com/repos/2gis/stf-utils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/2gis/stf-utils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/2gis/stf-utils/git/refs{/sha}","trees_url":"https://api.github.com/repos/2gis/stf-utils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/2gis/stf-utils/statuses/{sha}","languages_url":"https://api.github.com/repos/2gis/stf-utils/languages","stargazers_url":"https://api.github.com/repos/2gis/stf-utils/stargazers","contributors_url":"https://api.github.com/repos/2gis/stf-utils/contributors","subscribers_url":"https://api.github.com/repos/2gis/stf-utils/subscribers","subscription_url":"https://api.github.com/repos/2gis/stf-utils/subscription","commits_url":"https://api.github.com/repos/2gis/stf-utils/commits{/sha}","git_commits_url":"https://api.github.com/repos/2gis/stf-utils/git/commits{/sha}","comments_url":"https://api.github.com/repos/2gis/stf-utils/comments{/number}","issue_comment_url":"https://api.github.com/repos/2gis/stf-utils/issues/comments{/number}","contents_url":"https://api.github.com/repos/2gis/stf-utils/contents/{+path}","compare_url":"https://api.github.com/repos/2gis/stf-utils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/2gis/stf-utils/merges","archive_url":"https://api.github.com/repos/2gis/stf-utils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/2gis/stf-utils/downloads","issues_url":"https://api.github.com/repos/2gis/stf-utils/issues{/number}","pulls_url":"https://api.github.com/repos/2gis/stf-utils/pulls{/number}","milestones_url":"https://api.github.com/repos/2gis/stf-utils/milestones{/number}","notifications_url":"https://api.github.com/repos/2gis/stf-utils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/2gis/stf-utils/labels{/name}","releases_url":"https://api.github.com/repos/2gis/stf-utils/releases{/id}","deployments_url":"https://api.github.com/repos/2gis/stf-utils/deployments","created_at":"2016-03-21T09:06:04Z","updated_at":"2016-06-15T14:42:38Z","pushed_at":"2016-07-11T07:10:48Z","git_url":"git://github.com/2gis/stf-utils.git","ssh_url":"git@github.com:2gis/stf-utils.git","clone_url":"https://github.com/2gis/stf-utils.git","svn_url":"https://github.com/2gis/stf-utils","homepage":null,"size":76,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/2gis/stf-utils/pulls/21"},"html":{"href":"https://github.com/2gis/stf-utils/pull/21"},"issue":{"href":"https://api.github.com/repos/2gis/stf-utils/issues/21"},"comments":{"href":"https://api.github.com/repos/2gis/stf-utils/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/2gis/stf-utils/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/2gis/stf-utils/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/2gis/stf-utils/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/2gis/stf-utils/statuses/ff74f6e0aa5b009a1904f4c9ad71a07d8fa54d97"}}}}
{"actor":{"display_login":"rseek"}}