{"action":"created","comment":{"url":"https://api.github.com/repos/softlayer/softlayer-python/pulls/comments/213419164","pull_request_review_id":150251455,"id":213419164,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMzQxOTE2NA==","diff_hunk":"@@ -317,18 +318,57 @@ def _get_backend_router(self, locations, item):\n                 if category['categoryCode'] == 'dedicated_host_disk':\n                     disk_capacity = capacity['capacity']\n \n+        for hardwareComponent in item['bundleItems']:\n+            if hardwareComponent['keyName'].find(\"GPU\") != -1:\n+                hardwareComponentModel = hardwareComponent['hardwareGenericComponentModel']\n+                hardwareGenericComponentModelId = hardwareComponentModel['id']\n+                hardwareComponentType = hardwareComponentModel['hardwareComponentType']\n+                hardwareComponentTypeKeyName = hardwareComponentType['keyName']\n+\n         if locations is not None:\n             for location in locations:\n                 if location['locationId'] is not None:\n                     loc_id = location['locationId']\n-                    host = {\n-                        'cpuCount': cpu_count,\n-                        'memoryCapacity': mem_capacity,\n-                        'diskCapacity': disk_capacity,\n-                        'datacenter': {\n-                            'id': loc_id\n+                    if item['keyName'].find(\"GPU\") == -1:\n+                        host = {","path":"SoftLayer/managers/dedicated_host.py","position":null,"original_position":32,"commit_id":"ac9e28e29aba39b4ea4590220bd5478008040b90","original_commit_id":"ad8ebaf47a1e77d9120e7bc59305f266996c35e5","user":{"login":"FernandoOjeda","id":39388146,"node_id":"MDQ6VXNlcjM5Mzg4MTQ2","avatar_url":"https://avatars1.githubusercontent.com/u/39388146?v=4","gravatar_id":"","url":"https://api.github.com/users/FernandoOjeda","html_url":"https://github.com/FernandoOjeda","followers_url":"https://api.github.com/users/FernandoOjeda/followers","following_url":"https://api.github.com/users/FernandoOjeda/following{/other_user}","gists_url":"https://api.github.com/users/FernandoOjeda/gists{/gist_id}","starred_url":"https://api.github.com/users/FernandoOjeda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FernandoOjeda/subscriptions","organizations_url":"https://api.github.com/users/FernandoOjeda/orgs","repos_url":"https://api.github.com/users/FernandoOjeda/repos","events_url":"https://api.github.com/users/FernandoOjeda/events{/privacy}","received_events_url":"https://api.github.com/users/FernandoOjeda/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2018-08-28T18:12:28Z","updated_at":"2018-08-28T18:12:28Z","html_url":"https://github.com/softlayer/softlayer-python/pull/1025#discussion_r213419164","pull_request_url":"https://api.github.com/repos/softlayer/softlayer-python/pulls/1025","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/softlayer/softlayer-python/pulls/comments/213419164"},"html":{"href":"https://github.com/softlayer/softlayer-python/pull/1025#discussion_r213419164"},"pull_request":{"href":"https://api.github.com/repos/softlayer/softlayer-python/pulls/1025"}},"in_reply_to_id":213123040},"pull_request":{"url":"https://api.github.com/repos/softlayer/softlayer-python/pulls/1025","id":210533348,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwNTMzMzQ4","html_url":"https://github.com/softlayer/softlayer-python/pull/1025","diff_url":"https://github.com/softlayer/softlayer-python/pull/1025.diff","patch_url":"https://github.com/softlayer/softlayer-python/pull/1025.patch","issue_url":"https://api.github.com/repos/softlayer/softlayer-python/issues/1025","number":1025,"state":"open","locked":false,"title":"create dedicated host with gpu","user":{"login":"FernandoOjeda","id":39388146,"node_id":"MDQ6VXNlcjM5Mzg4MTQ2","avatar_url":"https://avatars1.githubusercontent.com/u/39388146?v=4","gravatar_id":"","url":"https://api.github.com/users/FernandoOjeda","html_url":"https://github.com/FernandoOjeda","followers_url":"https://api.github.com/users/FernandoOjeda/followers","following_url":"https://api.github.com/users/FernandoOjeda/following{/other_user}","gists_url":"https://api.github.com/users/FernandoOjeda/gists{/gist_id}","starred_url":"https://api.github.com/users/FernandoOjeda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FernandoOjeda/subscriptions","organizations_url":"https://api.github.com/users/FernandoOjeda/orgs","repos_url":"https://api.github.com/users/FernandoOjeda/repos","events_url":"https://api.github.com/users/FernandoOjeda/events{/privacy}","received_events_url":"https://api.github.com/users/FernandoOjeda/received_events","type":"User","site_admin":false},"body":"Create dedicated host with gpu https://github.com/softlayer/softlayer-python/issues/1022.","created_at":"2018-08-23T18:17:10Z","updated_at":"2018-08-28T18:12:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"797015d4728ea6f4de1aed000b859bae293d8bdf","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/softlayer/softlayer-python/pulls/1025/commits","review_comments_url":"https://api.github.com/repos/softlayer/softlayer-python/pulls/1025/comments","review_comment_url":"https://api.github.com/repos/softlayer/softlayer-python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/softlayer/softlayer-python/issues/1025/comments","statuses_url":"https://api.github.com/repos/softlayer/softlayer-python/statuses/ac9e28e29aba39b4ea4590220bd5478008040b90","head":{"label":"FernandoOjeda:fo_create_dedicated_host_with_gpu","ref":"fo_create_dedicated_host_with_gpu","sha":"ac9e28e29aba39b4ea4590220bd5478008040b90","user":{"login":"FernandoOjeda","id":39388146,"node_id":"MDQ6VXNlcjM5Mzg4MTQ2","avatar_url":"https://avatars1.githubusercontent.com/u/39388146?v=4","gravatar_id":"","url":"https://api.github.com/users/FernandoOjeda","html_url":"https://github.com/FernandoOjeda","followers_url":"https://api.github.com/users/FernandoOjeda/followers","following_url":"https://api.github.com/users/FernandoOjeda/following{/other_user}","gists_url":"https://api.github.com/users/FernandoOjeda/gists{/gist_id}","starred_url":"https://api.github.com/users/FernandoOjeda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FernandoOjeda/subscriptions","organizations_url":"https://api.github.com/users/FernandoOjeda/orgs","repos_url":"https://api.github.com/users/FernandoOjeda/repos","events_url":"https://api.github.com/users/FernandoOjeda/events{/privacy}","received_events_url":"https://api.github.com/users/FernandoOjeda/received_events","type":"User","site_admin":false},"repo":{"id":137908199,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc5MDgxOTk=","name":"softlayer-python","full_name":"FernandoOjeda/softlayer-python","owner":{"login":"FernandoOjeda","id":39388146,"node_id":"MDQ6VXNlcjM5Mzg4MTQ2","avatar_url":"https://avatars1.githubusercontent.com/u/39388146?v=4","gravatar_id":"","url":"https://api.github.com/users/FernandoOjeda","html_url":"https://github.com/FernandoOjeda","followers_url":"https://api.github.com/users/FernandoOjeda/followers","following_url":"https://api.github.com/users/FernandoOjeda/following{/other_user}","gists_url":"https://api.github.com/users/FernandoOjeda/gists{/gist_id}","starred_url":"https://api.github.com/users/FernandoOjeda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FernandoOjeda/subscriptions","organizations_url":"https://api.github.com/users/FernandoOjeda/orgs","repos_url":"https://api.github.com/users/FernandoOjeda/repos","events_url":"https://api.github.com/users/FernandoOjeda/events{/privacy}","received_events_url":"https://api.github.com/users/FernandoOjeda/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/FernandoOjeda/softlayer-python","description":"A set of Python libraries that assist in calling the SoftLayer API.","fork":true,"url":"https://api.github.com/repos/FernandoOjeda/softlayer-python","forks_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/forks","keys_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/teams","hooks_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/hooks","issue_events_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/issues/events{/number}","events_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/events","assignees_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/assignees{/user}","branches_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/branches{/branch}","tags_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/tags","blobs_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/statuses/{sha}","languages_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/languages","stargazers_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/stargazers","contributors_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/contributors","subscribers_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/subscribers","subscription_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/subscription","commits_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/contents/{+path}","compare_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/merges","archive_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/downloads","issues_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/issues{/number}","pulls_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/pulls{/number}","milestones_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/milestones{/number}","notifications_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/labels{/name}","releases_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/releases{/id}","deployments_url":"https://api.github.com/repos/FernandoOjeda/softlayer-python/deployments","created_at":"2018-06-19T15:08:37Z","updated_at":"2018-07-25T19:13:49Z","pushed_at":"2018-08-28T15:43:25Z","git_url":"git://github.com/FernandoOjeda/softlayer-python.git","ssh_url":"git@github.com:FernandoOjeda/softlayer-python.git","clone_url":"https://github.com/FernandoOjeda/softlayer-python.git","svn_url":"https://github.com/FernandoOjeda/softlayer-python","homepage":"http://softlayer.github.io/softlayer-python/","size":10432,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"softlayer:master","ref":"master","sha":"cdaebcc341452a88e9fb1be975881831d30cd687","user":{"login":"softlayer","id":49550,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ5NTUw","avatar_url":"https://avatars1.githubusercontent.com/u/49550?v=4","gravatar_id":"","url":"https://api.github.com/users/softlayer","html_url":"https://github.com/softlayer","followers_url":"https://api.github.com/users/softlayer/followers","following_url":"https://api.github.com/users/softlayer/following{/other_user}","gists_url":"https://api.github.com/users/softlayer/gists{/gist_id}","starred_url":"https://api.github.com/users/softlayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/softlayer/subscriptions","organizations_url":"https://api.github.com/users/softlayer/orgs","repos_url":"https://api.github.com/users/softlayer/repos","events_url":"https://api.github.com/users/softlayer/events{/privacy}","received_events_url":"https://api.github.com/users/softlayer/received_events","type":"Organization","site_admin":false},"repo":{"id":622291,"node_id":"MDEwOlJlcG9zaXRvcnk2MjIyOTE=","name":"softlayer-python","full_name":"softlayer/softlayer-python","owner":{"login":"softlayer","id":49550,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ5NTUw","avatar_url":"https://avatars1.githubusercontent.com/u/49550?v=4","gravatar_id":"","url":"https://api.github.com/users/softlayer","html_url":"https://github.com/softlayer","followers_url":"https://api.github.com/users/softlayer/followers","following_url":"https://api.github.com/users/softlayer/following{/other_user}","gists_url":"https://api.github.com/users/softlayer/gists{/gist_id}","starred_url":"https://api.github.com/users/softlayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/softlayer/subscriptions","organizations_url":"https://api.github.com/users/softlayer/orgs","repos_url":"https://api.github.com/users/softlayer/repos","events_url":"https://api.github.com/users/softlayer/events{/privacy}","received_events_url":"https://api.github.com/users/softlayer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/softlayer/softlayer-python","description":"A set of Python libraries that assist in calling the SoftLayer API.","fork":false,"url":"https://api.github.com/repos/softlayer/softlayer-python","forks_url":"https://api.github.com/repos/softlayer/softlayer-python/forks","keys_url":"https://api.github.com/repos/softlayer/softlayer-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/softlayer/softlayer-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/softlayer/softlayer-python/teams","hooks_url":"https://api.github.com/repos/softlayer/softlayer-python/hooks","issue_events_url":"https://api.github.com/repos/softlayer/softlayer-python/issues/events{/number}","events_url":"https://api.github.com/repos/softlayer/softlayer-python/events","assignees_url":"https://api.github.com/repos/softlayer/softlayer-python/assignees{/user}","branches_url":"https://api.github.com/repos/softlayer/softlayer-python/branches{/branch}","tags_url":"https://api.github.com/repos/softlayer/softlayer-python/tags","blobs_url":"https://api.github.com/repos/softlayer/softlayer-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/softlayer/softlayer-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/softlayer/softlayer-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/softlayer/softlayer-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/softlayer/softlayer-python/statuses/{sha}","languages_url":"https://api.github.com/repos/softlayer/softlayer-python/languages","stargazers_url":"https://api.github.com/repos/softlayer/softlayer-python/stargazers","contributors_url":"https://api.github.com/repos/softlayer/softlayer-python/contributors","subscribers_url":"https://api.github.com/repos/softlayer/softlayer-python/subscribers","subscription_url":"https://api.github.com/repos/softlayer/softlayer-python/subscription","commits_url":"https://api.github.com/repos/softlayer/softlayer-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/softlayer/softlayer-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/softlayer/softlayer-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/softlayer/softlayer-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/softlayer/softlayer-python/contents/{+path}","compare_url":"https://api.github.com/repos/softlayer/softlayer-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/softlayer/softlayer-python/merges","archive_url":"https://api.github.com/repos/softlayer/softlayer-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/softlayer/softlayer-python/downloads","issues_url":"https://api.github.com/repos/softlayer/softlayer-python/issues{/number}","pulls_url":"https://api.github.com/repos/softlayer/softlayer-python/pulls{/number}","milestones_url":"https://api.github.com/repos/softlayer/softlayer-python/milestones{/number}","notifications_url":"https://api.github.com/repos/softlayer/softlayer-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/softlayer/softlayer-python/labels{/name}","releases_url":"https://api.github.com/repos/softlayer/softlayer-python/releases{/id}","deployments_url":"https://api.github.com/repos/softlayer/softlayer-python/deployments","created_at":"2010-04-21T20:36:31Z","updated_at":"2018-08-27T21:37:11Z","pushed_at":"2018-08-28T15:43:27Z","git_url":"git://github.com/softlayer/softlayer-python.git","ssh_url":"git@github.com:softlayer/softlayer-python.git","clone_url":"https://github.com/softlayer/softlayer-python.git","svn_url":"https://github.com/softlayer/softlayer-python","homepage":"http://softlayer.github.io/softlayer-python/","size":10423,"stargazers_count":146,"watchers_count":146,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":165,"mirror_url":null,"archived":false,"open_issues_count":38,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":165,"open_issues":38,"watchers":146,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/softlayer/softlayer-python/pulls/1025"},"html":{"href":"https://github.com/softlayer/softlayer-python/pull/1025"},"issue":{"href":"https://api.github.com/repos/softlayer/softlayer-python/issues/1025"},"comments":{"href":"https://api.github.com/repos/softlayer/softlayer-python/issues/1025/comments"},"review_comments":{"href":"https://api.github.com/repos/softlayer/softlayer-python/pulls/1025/comments"},"review_comment":{"href":"https://api.github.com/repos/softlayer/softlayer-python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/softlayer/softlayer-python/pulls/1025/commits"},"statuses":{"href":"https://api.github.com/repos/softlayer/softlayer-python/statuses/ac9e28e29aba39b4ea4590220bd5478008040b90"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"FernandoOjeda"}}