def __generate_response(self, status, msg, extra=None):
    utils.log("Sending success = {0}, reason = {1}".format(status, msg))
    response = {'success': status, 'reason': msg}
    if extra is not None:
      for key, value in extra.items():
        response[key] = value
    return response
Retrieve all the EC2 kernels available on your account.
dataset/ETHPy150Open AppScale/appscale/InfrastructureManager/infrastructure_manager.py/InfrastructureManager.__generate_response--crossover with--dataset/ETHPy150Open darcyliu/storyboard/boto/ec2/connection.py/EC2Connection.get_all_kernels