{"action":"created","comment":{"url":"https://api.github.com/repos/stackhpc/tenks/pulls/comments/213249304","pull_request_review_id":150044300,"id":213249304,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMzI0OTMwNA==","diff_hunk":"@@ -0,0 +1,91 @@\n+# Copyright (c) 2018 StackHPC Ltd.\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n+# not use this file except in compliance with the License. You may obtain\n+# a copy of the License at\n+#\n+#      http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\n+# License for the specific language governing permissions and limitations\n+# under the License.\n+\n+# Avoid shadowing of system copy module by copy action plugin.\n+from __future__ import absolute_import\n+from copy import deepcopy\n+import operator\n+\n+from ansible.errors import AnsibleActionFail\n+from ansible.module_utils._text import to_text\n+from ansible.plugins.action import ActionBase\n+from six import iteritems\n+\n+\n+class ActionModule(ActionBase):\n+\n+    def run(self, tmp=None, task_vars=None):\n+        \"\"\"\n+        Schedule specifications of VMs by type onto hypervisors.\n+\n+        The following task vars are accepted:\n+            :hypervisor_vars: A dict of hostvars for each hypervisor, keyed\n+                              by hypervisor hostname. Required.\n+            :specs: A dict mapping VM type names to the number of VMs required\n+                    of that type. Required.\n+            :vm_types: A dict mapping VM type names to a dict of properties\n+                       of that type.\n+            :vm_name_prefix: A string with with to prefix all sequential VM","path":"ansible/action_plugins/tenks_schedule.py","position":39,"original_position":39,"commit_id":"9840887e3c9be3292720e30cb69d90d3c43a155f","original_commit_id":"9840887e3c9be3292720e30cb69d90d3c43a155f","user":{"login":"w-miller","id":14925373,"node_id":"MDQ6VXNlcjE0OTI1Mzcz","avatar_url":"https://avatars0.githubusercontent.com/u/14925373?v=4","gravatar_id":"","url":"https://api.github.com/users/w-miller","html_url":"https://github.com/w-miller","followers_url":"https://api.github.com/users/w-miller/followers","following_url":"https://api.github.com/users/w-miller/following{/other_user}","gists_url":"https://api.github.com/users/w-miller/gists{/gist_id}","starred_url":"https://api.github.com/users/w-miller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w-miller/subscriptions","organizations_url":"https://api.github.com/users/w-miller/orgs","repos_url":"https://api.github.com/users/w-miller/repos","events_url":"https://api.github.com/users/w-miller/events{/privacy}","received_events_url":"https://api.github.com/users/w-miller/received_events","type":"User","site_admin":false},"body":"Thanks.","created_at":"2018-08-28T09:47:19Z","updated_at":"2018-08-28T09:47:19Z","html_url":"https://github.com/stackhpc/tenks/pull/1#discussion_r213249304","pull_request_url":"https://api.github.com/repos/stackhpc/tenks/pulls/1","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/stackhpc/tenks/pulls/comments/213249304"},"html":{"href":"https://github.com/stackhpc/tenks/pull/1#discussion_r213249304"},"pull_request":{"href":"https://api.github.com/repos/stackhpc/tenks/pulls/1"}},"in_reply_to_id":213231823},"pull_request":{"url":"https://api.github.com/repos/stackhpc/tenks/pulls/1","id":210451418,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwNDUxNDE4","html_url":"https://github.com/stackhpc/tenks/pull/1","diff_url":"https://github.com/stackhpc/tenks/pull/1.diff","patch_url":"https://github.com/stackhpc/tenks/pull/1.patch","issue_url":"https://api.github.com/repos/stackhpc/tenks/issues/1","number":1,"state":"open","locked":false,"title":"[WIP] Proof of concept","user":{"login":"w-miller","id":14925373,"node_id":"MDQ6VXNlcjE0OTI1Mzcz","avatar_url":"https://avatars0.githubusercontent.com/u/14925373?v=4","gravatar_id":"","url":"https://api.github.com/users/w-miller","html_url":"https://github.com/w-miller","followers_url":"https://api.github.com/users/w-miller/followers","following_url":"https://api.github.com/users/w-miller/following{/other_user}","gists_url":"https://api.github.com/users/w-miller/gists{/gist_id}","starred_url":"https://api.github.com/users/w-miller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w-miller/subscriptions","organizations_url":"https://api.github.com/users/w-miller/orgs","repos_url":"https://api.github.com/users/w-miller/repos","events_url":"https://api.github.com/users/w-miller/events{/privacy}","received_events_url":"https://api.github.com/users/w-miller/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-23T13:38:46Z","updated_at":"2018-08-28T09:47:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4632c3916216bc364fc15ca267d03448eff75aee","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/stackhpc/tenks/pulls/1/commits","review_comments_url":"https://api.github.com/repos/stackhpc/tenks/pulls/1/comments","review_comment_url":"https://api.github.com/repos/stackhpc/tenks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stackhpc/tenks/issues/1/comments","statuses_url":"https://api.github.com/repos/stackhpc/tenks/statuses/9840887e3c9be3292720e30cb69d90d3c43a155f","head":{"label":"stackhpc:proof-of-concept","ref":"proof-of-concept","sha":"9840887e3c9be3292720e30cb69d90d3c43a155f","user":{"login":"stackhpc","id":22750772,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyNzUwNzcy","avatar_url":"https://avatars2.githubusercontent.com/u/22750772?v=4","gravatar_id":"","url":"https://api.github.com/users/stackhpc","html_url":"https://github.com/stackhpc","followers_url":"https://api.github.com/users/stackhpc/followers","following_url":"https://api.github.com/users/stackhpc/following{/other_user}","gists_url":"https://api.github.com/users/stackhpc/gists{/gist_id}","starred_url":"https://api.github.com/users/stackhpc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stackhpc/subscriptions","organizations_url":"https://api.github.com/users/stackhpc/orgs","repos_url":"https://api.github.com/users/stackhpc/repos","events_url":"https://api.github.com/users/stackhpc/events{/privacy}","received_events_url":"https://api.github.com/users/stackhpc/received_events","type":"Organization","site_admin":false},"repo":{"id":145108089,"node_id":"MDEwOlJlcG9zaXRvcnkxNDUxMDgwODk=","name":"tenks","full_name":"stackhpc/tenks","owner":{"login":"stackhpc","id":22750772,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyNzUwNzcy","avatar_url":"https://avatars2.githubusercontent.com/u/22750772?v=4","gravatar_id":"","url":"https://api.github.com/users/stackhpc","html_url":"https://github.com/stackhpc","followers_url":"https://api.github.com/users/stackhpc/followers","following_url":"https://api.github.com/users/stackhpc/following{/other_user}","gists_url":"https://api.github.com/users/stackhpc/gists{/gist_id}","starred_url":"https://api.github.com/users/stackhpc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stackhpc/subscriptions","organizations_url":"https://api.github.com/users/stackhpc/orgs","repos_url":"https://api.github.com/users/stackhpc/repos","events_url":"https://api.github.com/users/stackhpc/events{/privacy}","received_events_url":"https://api.github.com/users/stackhpc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stackhpc/tenks","description":"Virtual bare metal cluster management","fork":false,"url":"https://api.github.com/repos/stackhpc/tenks","forks_url":"https://api.github.com/repos/stackhpc/tenks/forks","keys_url":"https://api.github.com/repos/stackhpc/tenks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stackhpc/tenks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stackhpc/tenks/teams","hooks_url":"https://api.github.com/repos/stackhpc/tenks/hooks","issue_events_url":"https://api.github.com/repos/stackhpc/tenks/issues/events{/number}","events_url":"https://api.github.com/repos/stackhpc/tenks/events","assignees_url":"https://api.github.com/repos/stackhpc/tenks/assignees{/user}","branches_url":"https://api.github.com/repos/stackhpc/tenks/branches{/branch}","tags_url":"https://api.github.com/repos/stackhpc/tenks/tags","blobs_url":"https://api.github.com/repos/stackhpc/tenks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stackhpc/tenks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stackhpc/tenks/git/refs{/sha}","trees_url":"https://api.github.com/repos/stackhpc/tenks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stackhpc/tenks/statuses/{sha}","languages_url":"https://api.github.com/repos/stackhpc/tenks/languages","stargazers_url":"https://api.github.com/repos/stackhpc/tenks/stargazers","contributors_url":"https://api.github.com/repos/stackhpc/tenks/contributors","subscribers_url":"https://api.github.com/repos/stackhpc/tenks/subscribers","subscription_url":"https://api.github.com/repos/stackhpc/tenks/subscription","commits_url":"https://api.github.com/repos/stackhpc/tenks/commits{/sha}","git_commits_url":"https://api.github.com/repos/stackhpc/tenks/git/commits{/sha}","comments_url":"https://api.github.com/repos/stackhpc/tenks/comments{/number}","issue_comment_url":"https://api.github.com/repos/stackhpc/tenks/issues/comments{/number}","contents_url":"https://api.github.com/repos/stackhpc/tenks/contents/{+path}","compare_url":"https://api.github.com/repos/stackhpc/tenks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stackhpc/tenks/merges","archive_url":"https://api.github.com/repos/stackhpc/tenks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stackhpc/tenks/downloads","issues_url":"https://api.github.com/repos/stackhpc/tenks/issues{/number}","pulls_url":"https://api.github.com/repos/stackhpc/tenks/pulls{/number}","milestones_url":"https://api.github.com/repos/stackhpc/tenks/milestones{/number}","notifications_url":"https://api.github.com/repos/stackhpc/tenks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stackhpc/tenks/labels{/name}","releases_url":"https://api.github.com/repos/stackhpc/tenks/releases{/id}","deployments_url":"https://api.github.com/repos/stackhpc/tenks/deployments","created_at":"2018-08-17T10:38:19Z","updated_at":"2018-08-23T13:38:53Z","pushed_at":"2018-08-28T08:27:26Z","git_url":"git://github.com/stackhpc/tenks.git","ssh_url":"git@github.com:stackhpc/tenks.git","clone_url":"https://github.com/stackhpc/tenks.git","svn_url":"https://github.com/stackhpc/tenks","homepage":null,"size":34,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"stackhpc:master","ref":"master","sha":"80ff2d9c889b5e6de5ff7d5a3241429d2c2bcaac","user":{"login":"stackhpc","id":22750772,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyNzUwNzcy","avatar_url":"https://avatars2.githubusercontent.com/u/22750772?v=4","gravatar_id":"","url":"https://api.github.com/users/stackhpc","html_url":"https://github.com/stackhpc","followers_url":"https://api.github.com/users/stackhpc/followers","following_url":"https://api.github.com/users/stackhpc/following{/other_user}","gists_url":"https://api.github.com/users/stackhpc/gists{/gist_id}","starred_url":"https://api.github.com/users/stackhpc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stackhpc/subscriptions","organizations_url":"https://api.github.com/users/stackhpc/orgs","repos_url":"https://api.github.com/users/stackhpc/repos","events_url":"https://api.github.com/users/stackhpc/events{/privacy}","received_events_url":"https://api.github.com/users/stackhpc/received_events","type":"Organization","site_admin":false},"repo":{"id":145108089,"node_id":"MDEwOlJlcG9zaXRvcnkxNDUxMDgwODk=","name":"tenks","full_name":"stackhpc/tenks","owner":{"login":"stackhpc","id":22750772,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyNzUwNzcy","avatar_url":"https://avatars2.githubusercontent.com/u/22750772?v=4","gravatar_id":"","url":"https://api.github.com/users/stackhpc","html_url":"https://github.com/stackhpc","followers_url":"https://api.github.com/users/stackhpc/followers","following_url":"https://api.github.com/users/stackhpc/following{/other_user}","gists_url":"https://api.github.com/users/stackhpc/gists{/gist_id}","starred_url":"https://api.github.com/users/stackhpc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stackhpc/subscriptions","organizations_url":"https://api.github.com/users/stackhpc/orgs","repos_url":"https://api.github.com/users/stackhpc/repos","events_url":"https://api.github.com/users/stackhpc/events{/privacy}","received_events_url":"https://api.github.com/users/stackhpc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stackhpc/tenks","description":"Virtual bare metal cluster management","fork":false,"url":"https://api.github.com/repos/stackhpc/tenks","forks_url":"https://api.github.com/repos/stackhpc/tenks/forks","keys_url":"https://api.github.com/repos/stackhpc/tenks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stackhpc/tenks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stackhpc/tenks/teams","hooks_url":"https://api.github.com/repos/stackhpc/tenks/hooks","issue_events_url":"https://api.github.com/repos/stackhpc/tenks/issues/events{/number}","events_url":"https://api.github.com/repos/stackhpc/tenks/events","assignees_url":"https://api.github.com/repos/stackhpc/tenks/assignees{/user}","branches_url":"https://api.github.com/repos/stackhpc/tenks/branches{/branch}","tags_url":"https://api.github.com/repos/stackhpc/tenks/tags","blobs_url":"https://api.github.com/repos/stackhpc/tenks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stackhpc/tenks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stackhpc/tenks/git/refs{/sha}","trees_url":"https://api.github.com/repos/stackhpc/tenks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stackhpc/tenks/statuses/{sha}","languages_url":"https://api.github.com/repos/stackhpc/tenks/languages","stargazers_url":"https://api.github.com/repos/stackhpc/tenks/stargazers","contributors_url":"https://api.github.com/repos/stackhpc/tenks/contributors","subscribers_url":"https://api.github.com/repos/stackhpc/tenks/subscribers","subscription_url":"https://api.github.com/repos/stackhpc/tenks/subscription","commits_url":"https://api.github.com/repos/stackhpc/tenks/commits{/sha}","git_commits_url":"https://api.github.com/repos/stackhpc/tenks/git/commits{/sha}","comments_url":"https://api.github.com/repos/stackhpc/tenks/comments{/number}","issue_comment_url":"https://api.github.com/repos/stackhpc/tenks/issues/comments{/number}","contents_url":"https://api.github.com/repos/stackhpc/tenks/contents/{+path}","compare_url":"https://api.github.com/repos/stackhpc/tenks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stackhpc/tenks/merges","archive_url":"https://api.github.com/repos/stackhpc/tenks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stackhpc/tenks/downloads","issues_url":"https://api.github.com/repos/stackhpc/tenks/issues{/number}","pulls_url":"https://api.github.com/repos/stackhpc/tenks/pulls{/number}","milestones_url":"https://api.github.com/repos/stackhpc/tenks/milestones{/number}","notifications_url":"https://api.github.com/repos/stackhpc/tenks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stackhpc/tenks/labels{/name}","releases_url":"https://api.github.com/repos/stackhpc/tenks/releases{/id}","deployments_url":"https://api.github.com/repos/stackhpc/tenks/deployments","created_at":"2018-08-17T10:38:19Z","updated_at":"2018-08-23T13:38:53Z","pushed_at":"2018-08-28T08:27:26Z","git_url":"git://github.com/stackhpc/tenks.git","ssh_url":"git@github.com:stackhpc/tenks.git","clone_url":"https://github.com/stackhpc/tenks.git","svn_url":"https://github.com/stackhpc/tenks","homepage":null,"size":34,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stackhpc/tenks/pulls/1"},"html":{"href":"https://github.com/stackhpc/tenks/pull/1"},"issue":{"href":"https://api.github.com/repos/stackhpc/tenks/issues/1"},"comments":{"href":"https://api.github.com/repos/stackhpc/tenks/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/stackhpc/tenks/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/stackhpc/tenks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stackhpc/tenks/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/stackhpc/tenks/statuses/9840887e3c9be3292720e30cb69d90d3c43a155f"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"w-miller"}}