in gstack/controllers/operations.py [0:0]
def _create_instance_response(async_result, projectid, authorization):
populated_response = _get_instance_async_response(
async_result, projectid, 'insert')
populated_response['user'] = async_result['userid']
if async_result['jobstatus'] is 1:
_add_sshkey_metadata(
authorization=authorization,
publickey=publickey_storage[projectid],
instanceid=async_result['jobresult']['virtualmachine']['id']
)
return populated_response