def get_resource_status(status):
    if ('IN_PROGRESS' in status):
        return 'IN_PROGRESS'
    elif ('FAILED' in status):
        return 'FAILED'
    elif ('DELETE' in status):
        return 'DELETE'
    elif ('INIT' in status):
        return 'INIT'
    else:
        return 'COMPLETE'
dataset/ETHPy150Open openstack/horizon/openstack_dashboard/dashboards/project/stacks/mappings.py/get_resource_status/original