def _format_body_data(self, body, response_key):
        if response_key:
            try:
                data = body[response_key]
            except __HOLE__:
                return []
        else:
            data = body

        if not isinstance(data, list):
            data = [data]

        return data
dataset/ETHPy150Open openstack/python-ironicclient/ironicclient/common/base.py/Manager._format_body_data