{"action":"created","comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments/122802655","pull_request_review_id":44948996,"id":122802655,"diff_hunk":"@@ -0,0 +1,90 @@\n+class ServiceTemplateContainerTemplate < ServiceTemplateGeneric\n+  def self.default_provisioning_entry_point(_service_type)\n+    '/Service/Generic/StateMachines/GenericLifecycle/provision'\n+  end\n+\n+  def self.default_retirement_entry_point\n+    nil\n+  end\n+\n+  # create ServiceTemplate and supporting ServiceResources and ResourceActions\n+  # options\n+  #   :name\n+  #   :description\n+  #   :service_template_catalog_id\n+  #   :config_info\n+  #     :provision\n+  #       :dialog_id or :dialog\n+  #       :container_template_id or :container_template\n+  #\n+  def self.create_catalog_item(options)\n+    options     = options.merge(:service_type => 'atomic', :prov_type => 'generic_container_template')\n+    config_info = validate_config_info(options[:config_info])\n+    enhanced_config = config_info.deep_merge(\n+      :provision => {\n+        :configuration_template => container_template_from_config_info(config_info)\n+      }\n+    )\n+\n+    transaction do\n+      create_from_options(options).tap do |service_template|\n+        service_template.create_resource_actions(enhanced_config)\n+      end\n+    end\n+  end\n+\n+  def self.validate_config_info(info)\n+    info[:provision][:fqname] ||= default_provisioning_entry_point('atomic') if info.key?(:provision)","path":"app/models/service_template_container_template.rb","position":37,"original_position":37,"commit_id":"bf84e98607edd4618442f333327caa1f214f1be2","original_commit_id":"bf84e98607edd4618442f333327caa1f214f1be2","user":{"login":"gmcculloug","id":2591569,"avatar_url":"https://avatars3.githubusercontent.com/u/2591569?v=3","gravatar_id":"","url":"https://api.github.com/users/gmcculloug","html_url":"https://github.com/gmcculloug","followers_url":"https://api.github.com/users/gmcculloug/followers","following_url":"https://api.github.com/users/gmcculloug/following{/other_user}","gists_url":"https://api.github.com/users/gmcculloug/gists{/gist_id}","starred_url":"https://api.github.com/users/gmcculloug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmcculloug/subscriptions","organizations_url":"https://api.github.com/users/gmcculloug/orgs","repos_url":"https://api.github.com/users/gmcculloug/repos","events_url":"https://api.github.com/users/gmcculloug/events{/privacy}","received_events_url":"https://api.github.com/users/gmcculloug/received_events","type":"User","site_admin":false},"body":"For `Ansible PlayBook` services we are not exposing the provisioning entry point so this check would make sense there, but here the UI will allow for different automate entry points to be selected.  cc @bzwei ","created_at":"2017-06-19T19:32:20Z","updated_at":"2017-06-19T19:32:20Z","html_url":"https://github.com/ManageIQ/manageiq/pull/15356#discussion_r122802655","pull_request_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/15356","_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments/122802655"},"html":{"href":"https://github.com/ManageIQ/manageiq/pull/15356#discussion_r122802655"},"pull_request":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/15356"}}},"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/15356","id":125209068,"html_url":"https://github.com/ManageIQ/manageiq/pull/15356","diff_url":"https://github.com/ManageIQ/manageiq/pull/15356.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/15356.patch","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/15356","number":15356,"state":"open","locked":false,"title":"Add ServiceTemplateContainerTemplate.","user":{"login":"lfu","id":2593270,"avatar_url":"https://avatars0.githubusercontent.com/u/2593270?v=3","gravatar_id":"","url":"https://api.github.com/users/lfu","html_url":"https://github.com/lfu","followers_url":"https://api.github.com/users/lfu/followers","following_url":"https://api.github.com/users/lfu/following{/other_user}","gists_url":"https://api.github.com/users/lfu/gists{/gist_id}","starred_url":"https://api.github.com/users/lfu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfu/subscriptions","organizations_url":"https://api.github.com/users/lfu/orgs","repos_url":"https://api.github.com/users/lfu/repos","events_url":"https://api.github.com/users/lfu/events{/privacy}","received_events_url":"https://api.github.com/users/lfu/received_events","type":"User","site_admin":false},"body":"Add ServiceTemplateContainerTemplate for container template provisioning.\r\n\r\n@miq-bot assign @gmcculloug\r\n@miq-bot add_label enhancement, services, providers/containers\r\n","created_at":"2017-06-12T19:17:06Z","updated_at":"2017-06-19T19:32:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8d4e2cd2ccfc7777a015c98f1c7db968975fc0eb","assignee":{"login":"gmcculloug","id":2591569,"avatar_url":"https://avatars3.githubusercontent.com/u/2591569?v=3","gravatar_id":"","url":"https://api.github.com/users/gmcculloug","html_url":"https://github.com/gmcculloug","followers_url":"https://api.github.com/users/gmcculloug/followers","following_url":"https://api.github.com/users/gmcculloug/following{/other_user}","gists_url":"https://api.github.com/users/gmcculloug/gists{/gist_id}","starred_url":"https://api.github.com/users/gmcculloug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmcculloug/subscriptions","organizations_url":"https://api.github.com/users/gmcculloug/orgs","repos_url":"https://api.github.com/users/gmcculloug/repos","events_url":"https://api.github.com/users/gmcculloug/events{/privacy}","received_events_url":"https://api.github.com/users/gmcculloug/received_events","type":"User","site_admin":false},"assignees":[{"login":"gmcculloug","id":2591569,"avatar_url":"https://avatars3.githubusercontent.com/u/2591569?v=3","gravatar_id":"","url":"https://api.github.com/users/gmcculloug","html_url":"https://github.com/gmcculloug","followers_url":"https://api.github.com/users/gmcculloug/followers","following_url":"https://api.github.com/users/gmcculloug/following{/other_user}","gists_url":"https://api.github.com/users/gmcculloug/gists{/gist_id}","starred_url":"https://api.github.com/users/gmcculloug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmcculloug/subscriptions","organizations_url":"https://api.github.com/users/gmcculloug/orgs","repos_url":"https://api.github.com/users/gmcculloug/repos","events_url":"https://api.github.com/users/gmcculloug/events{/privacy}","received_events_url":"https://api.github.com/users/gmcculloug/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/15356/commits","review_comments_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/15356/comments","review_comment_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/15356/comments","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq/statuses/bf84e98607edd4618442f333327caa1f214f1be2","head":{"label":"lfu:service_template_container_template","ref":"service_template_container_template","sha":"bf84e98607edd4618442f333327caa1f214f1be2","user":{"login":"lfu","id":2593270,"avatar_url":"https://avatars0.githubusercontent.com/u/2593270?v=3","gravatar_id":"","url":"https://api.github.com/users/lfu","html_url":"https://github.com/lfu","followers_url":"https://api.github.com/users/lfu/followers","following_url":"https://api.github.com/users/lfu/following{/other_user}","gists_url":"https://api.github.com/users/lfu/gists{/gist_id}","starred_url":"https://api.github.com/users/lfu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfu/subscriptions","organizations_url":"https://api.github.com/users/lfu/orgs","repos_url":"https://api.github.com/users/lfu/repos","events_url":"https://api.github.com/users/lfu/events{/privacy}","received_events_url":"https://api.github.com/users/lfu/received_events","type":"User","site_admin":false},"repo":{"id":20816972,"name":"manageiq","full_name":"lfu/manageiq","owner":{"login":"lfu","id":2593270,"avatar_url":"https://avatars0.githubusercontent.com/u/2593270?v=3","gravatar_id":"","url":"https://api.github.com/users/lfu","html_url":"https://github.com/lfu","followers_url":"https://api.github.com/users/lfu/followers","following_url":"https://api.github.com/users/lfu/following{/other_user}","gists_url":"https://api.github.com/users/lfu/gists{/gist_id}","starred_url":"https://api.github.com/users/lfu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfu/subscriptions","organizations_url":"https://api.github.com/users/lfu/orgs","repos_url":"https://api.github.com/users/lfu/repos","events_url":"https://api.github.com/users/lfu/events{/privacy}","received_events_url":"https://api.github.com/users/lfu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lfu/manageiq","description":"ManageIQ Cloud Management Platform","fork":true,"url":"https://api.github.com/repos/lfu/manageiq","forks_url":"https://api.github.com/repos/lfu/manageiq/forks","keys_url":"https://api.github.com/repos/lfu/manageiq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lfu/manageiq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lfu/manageiq/teams","hooks_url":"https://api.github.com/repos/lfu/manageiq/hooks","issue_events_url":"https://api.github.com/repos/lfu/manageiq/issues/events{/number}","events_url":"https://api.github.com/repos/lfu/manageiq/events","assignees_url":"https://api.github.com/repos/lfu/manageiq/assignees{/user}","branches_url":"https://api.github.com/repos/lfu/manageiq/branches{/branch}","tags_url":"https://api.github.com/repos/lfu/manageiq/tags","blobs_url":"https://api.github.com/repos/lfu/manageiq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lfu/manageiq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lfu/manageiq/git/refs{/sha}","trees_url":"https://api.github.com/repos/lfu/manageiq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lfu/manageiq/statuses/{sha}","languages_url":"https://api.github.com/repos/lfu/manageiq/languages","stargazers_url":"https://api.github.com/repos/lfu/manageiq/stargazers","contributors_url":"https://api.github.com/repos/lfu/manageiq/contributors","subscribers_url":"https://api.github.com/repos/lfu/manageiq/subscribers","subscription_url":"https://api.github.com/repos/lfu/manageiq/subscription","commits_url":"https://api.github.com/repos/lfu/manageiq/commits{/sha}","git_commits_url":"https://api.github.com/repos/lfu/manageiq/git/commits{/sha}","comments_url":"https://api.github.com/repos/lfu/manageiq/comments{/number}","issue_comment_url":"https://api.github.com/repos/lfu/manageiq/issues/comments{/number}","contents_url":"https://api.github.com/repos/lfu/manageiq/contents/{+path}","compare_url":"https://api.github.com/repos/lfu/manageiq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lfu/manageiq/merges","archive_url":"https://api.github.com/repos/lfu/manageiq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lfu/manageiq/downloads","issues_url":"https://api.github.com/repos/lfu/manageiq/issues{/number}","pulls_url":"https://api.github.com/repos/lfu/manageiq/pulls{/number}","milestones_url":"https://api.github.com/repos/lfu/manageiq/milestones{/number}","notifications_url":"https://api.github.com/repos/lfu/manageiq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lfu/manageiq/labels{/name}","releases_url":"https://api.github.com/repos/lfu/manageiq/releases{/id}","deployments_url":"https://api.github.com/repos/lfu/manageiq/deployments","created_at":"2014-06-13T20:33:14Z","updated_at":"2014-06-17T21:01:03Z","pushed_at":"2017-06-19T19:10:20Z","git_url":"git://github.com/lfu/manageiq.git","ssh_url":"git@github.com:lfu/manageiq.git","clone_url":"https://github.com/lfu/manageiq.git","svn_url":"https://github.com/lfu/manageiq","homepage":null,"size":177460,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"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":"master"}},"base":{"label":"ManageIQ:master","ref":"master","sha":"2323c7f8e7e4bffffb9b0993f55eed1c02821a2b","user":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars3.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"repo":{"id":20789757,"name":"manageiq","full_name":"ManageIQ/manageiq","owner":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars3.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ManageIQ/manageiq","description":"ManageIQ Open-Source Management Platform","fork":false,"url":"https://api.github.com/repos/ManageIQ/manageiq","forks_url":"https://api.github.com/repos/ManageIQ/manageiq/forks","keys_url":"https://api.github.com/repos/ManageIQ/manageiq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ManageIQ/manageiq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ManageIQ/manageiq/teams","hooks_url":"https://api.github.com/repos/ManageIQ/manageiq/hooks","issue_events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/events{/number}","events_url":"https://api.github.com/repos/ManageIQ/manageiq/events","assignees_url":"https://api.github.com/repos/ManageIQ/manageiq/assignees{/user}","branches_url":"https://api.github.com/repos/ManageIQ/manageiq/branches{/branch}","tags_url":"https://api.github.com/repos/ManageIQ/manageiq/tags","blobs_url":"https://api.github.com/repos/ManageIQ/manageiq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ManageIQ/manageiq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ManageIQ/manageiq/git/refs{/sha}","trees_url":"https://api.github.com/repos/ManageIQ/manageiq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq/statuses/{sha}","languages_url":"https://api.github.com/repos/ManageIQ/manageiq/languages","stargazers_url":"https://api.github.com/repos/ManageIQ/manageiq/stargazers","contributors_url":"https://api.github.com/repos/ManageIQ/manageiq/contributors","subscribers_url":"https://api.github.com/repos/ManageIQ/manageiq/subscribers","subscription_url":"https://api.github.com/repos/ManageIQ/manageiq/subscription","commits_url":"https://api.github.com/repos/ManageIQ/manageiq/commits{/sha}","git_commits_url":"https://api.github.com/repos/ManageIQ/manageiq/git/commits{/sha}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/comments{/number}","issue_comment_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments{/number}","contents_url":"https://api.github.com/repos/ManageIQ/manageiq/contents/{+path}","compare_url":"https://api.github.com/repos/ManageIQ/manageiq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ManageIQ/manageiq/merges","archive_url":"https://api.github.com/repos/ManageIQ/manageiq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ManageIQ/manageiq/downloads","issues_url":"https://api.github.com/repos/ManageIQ/manageiq/issues{/number}","pulls_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls{/number}","milestones_url":"https://api.github.com/repos/ManageIQ/manageiq/milestones{/number}","notifications_url":"https://api.github.com/repos/ManageIQ/manageiq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/labels{/name}","releases_url":"https://api.github.com/repos/ManageIQ/manageiq/releases{/id}","deployments_url":"https://api.github.com/repos/ManageIQ/manageiq/deployments","created_at":"2014-06-13T02:31:26Z","updated_at":"2017-06-18T14:55:01Z","pushed_at":"2017-06-19T19:30:12Z","git_url":"git://github.com/ManageIQ/manageiq.git","ssh_url":"git@github.com:ManageIQ/manageiq.git","clone_url":"https://github.com/ManageIQ/manageiq.git","svn_url":"https://github.com/ManageIQ/manageiq","homepage":"manageiq.org","size":198404,"stargazers_count":476,"watchers_count":476,"language":"Ruby","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":479,"mirror_url":null,"open_issues_count":871,"forks":479,"open_issues":871,"watchers":476,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/15356"},"html":{"href":"https://github.com/ManageIQ/manageiq/pull/15356"},"issue":{"href":"https://api.github.com/repos/ManageIQ/manageiq/issues/15356"},"comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq/issues/15356/comments"},"review_comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/15356/comments"},"review_comment":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/15356/commits"},"statuses":{"href":"https://api.github.com/repos/ManageIQ/manageiq/statuses/bf84e98607edd4618442f333327caa1f214f1be2"}}}}
{"actor":{"display_login":"gmcculloug"}}