{"action":"created","issue":{"url":"https://api.github.com/repos/pantheon-systems/cli/issues/167","labels_url":"https://api.github.com/repos/pantheon-systems/cli/issues/167/labels{/name}","comments_url":"https://api.github.com/repos/pantheon-systems/cli/issues/167/comments","events_url":"https://api.github.com/repos/pantheon-systems/cli/issues/167/events","html_url":"https://github.com/pantheon-systems/cli/issues/167","id":59874974,"number":167,"title":"'terminus sites create' yeilds stacktrace","user":{"login":"bwood","id":185537,"avatar_url":"https://avatars.githubusercontent.com/u/185537?v=3","gravatar_id":"","url":"https://api.github.com/users/bwood","html_url":"https://github.com/bwood","followers_url":"https://api.github.com/users/bwood/followers","following_url":"https://api.github.com/users/bwood/following{/other_user}","gists_url":"https://api.github.com/users/bwood/gists{/gist_id}","starred_url":"https://api.github.com/users/bwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwood/subscriptions","organizations_url":"https://api.github.com/users/bwood/orgs","repos_url":"https://api.github.com/users/bwood/repos","events_url":"https://api.github.com/users/bwood/events{/privacy}","received_events_url":"https://api.github.com/users/bwood/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pantheon-systems/cli/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"mikevanwinkle","id":429554,"avatar_url":"https://avatars.githubusercontent.com/u/429554?v=3","gravatar_id":"","url":"https://api.github.com/users/mikevanwinkle","html_url":"https://github.com/mikevanwinkle","followers_url":"https://api.github.com/users/mikevanwinkle/followers","following_url":"https://api.github.com/users/mikevanwinkle/following{/other_user}","gists_url":"https://api.github.com/users/mikevanwinkle/gists{/gist_id}","starred_url":"https://api.github.com/users/mikevanwinkle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikevanwinkle/subscriptions","organizations_url":"https://api.github.com/users/mikevanwinkle/orgs","repos_url":"https://api.github.com/users/mikevanwinkle/repos","events_url":"https://api.github.com/users/mikevanwinkle/events{/privacy}","received_events_url":"https://api.github.com/users/mikevanwinkle/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-03-04T22:43:49Z","updated_at":"2015-03-05T17:48:51Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/pantheon-systems/cli/issues/comments/77412602","html_url":"https://github.com/pantheon-systems/cli/issues/167#issuecomment-77412602","issue_url":"https://api.github.com/repos/pantheon-systems/cli/issues/167","id":77412602,"user":{"login":"bwood","id":185537,"avatar_url":"https://avatars.githubusercontent.com/u/185537?v=3","gravatar_id":"","url":"https://api.github.com/users/bwood","html_url":"https://github.com/bwood","followers_url":"https://api.github.com/users/bwood/followers","following_url":"https://api.github.com/users/bwood/following{/other_user}","gists_url":"https://api.github.com/users/bwood/gists{/gist_id}","starred_url":"https://api.github.com/users/bwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwood/subscriptions","organizations_url":"https://api.github.com/users/bwood/orgs","repos_url":"https://api.github.com/users/bwood/repos","events_url":"https://api.github.com/users/bwood/events{/privacy}","received_events_url":"https://api.github.com/users/bwood/received_events","type":"User","site_admin":false},"created_at":"2015-03-05T17:48:51Z","updated_at":"2015-03-05T17:48:51Z","body":"Two tests without the org:\r\n\r\n```\r\n[bwood@mbp pantheon]$ terminus sites create --product=87774fa4-b570-4300-a693-1c98b61457cd --site=t20-bw0305 --label=t20-bw0305\r\n\r\n  1. None\r\n  2. UC Berkeley - Testing\r\n  3. UC Berkeley\r\n  4. Drupal Distribution Testing\r\n\r\nChoose organization: 1\r\nCreating new Open Berkeley 7 installation ...\r\nError: [ERROR] Traceback (most recent call last):\r\n  File \"/usr/lib/python2.7/site-packages/titan/yggdrasil/yggdrasil_tasks.py\", line 2206, in _trigger\r\n    d.addCallbacks(executeCallback, failureCallback)\r\n  File \"/usr/lib64/python2.7/site-packages/twisted/internet/defer.py\", line 290, in addCallbacks\r\n    self._runCallbacks()\r\n  File \"/usr/lib64/python2.7/site-packages/twisted/internet/defer.py\", line 551, in _runCallbacks\r\n    current.result = callback(current.result, *args, **kw)\r\n  File \"/usr/lib/python2.7/site-packages/titan/yggdrasil/yggdrasil_tasks.py\", line 2168, in executeCallback\r\n    d = defer.maybeDeferred(response, workflow=workflow, task=task, **params)\r\n--- <exception caught here> ---\r\n  File \"/usr/lib64/python2.7/site-packages/twisted/internet/defer.py\", line 134, in maybeDeferred\r\n    result = f(*args, **kw)\r\n  File \"/usr/lib/python2.7/site-packages/titan/yggdrasil/yggdrasil_tasks.py\", line 1306, in create_site\r\n    if model.metadata['site']['service_level'] == 'free' and model.metadata['site']['holder_id'] == user_id:\r\nexceptions.KeyError: 'site'\r\n\r\n[bwood@mbp pantheon]$ terminus sites create --product=87774fa4-b570-4300-a693-1c98b61457cd --site=t20-bw0305 --label=t20-bw0305\r\n\r\n  1. None\r\n  2. UC Berkeley - Testing\r\n  3. UC Berkeley\r\n  4. Drupal Distribution Testing\r\n\r\nChoose organization: 2\r\nCreating new Open Berkeley 7 installation ...\r\nError: [ERROR] Traceback (most recent call last):\r\n  File \"/usr/lib/python2.7/site-packages/titan/yggdrasil/yggdrasil_tasks.py\", line 2206, in _trigger\r\n    d.addCallbacks(executeCallback, failureCallback)\r\n  File \"/usr/lib64/python2.7/site-packages/twisted/internet/defer.py\", line 290, in addCallbacks\r\n    self._runCallbacks()\r\n  File \"/usr/lib64/python2.7/site-packages/twisted/internet/defer.py\", line 551, in _runCallbacks\r\n    current.result = callback(current.result, *args, **kw)\r\n  File \"/usr/lib/python2.7/site-packages/titan/yggdrasil/yggdrasil_tasks.py\", line 2168, in executeCallback\r\n    d = defer.maybeDeferred(response, workflow=workflow, task=task, **params)\r\n--- <exception caught here> ---\r\n  File \"/usr/lib64/python2.7/site-packages/twisted/internet/defer.py\", line 134, in maybeDeferred\r\n    result = f(*args, **kw)\r\n  File \"/usr/lib/python2.7/site-packages/titan/yggdrasil/yggdrasil_tasks.py\", line 1306, in create_site\r\n    if model.metadata['site']['service_level'] == 'free' and model.metadata['site']['holder_id'] == user_id:\r\nexceptions.KeyError: 'site'\r\n```"}}