def allowed(self, request, instance=None):
        return ((ACTIVE_STATES in instance.status
                 or instance.status == 'SHUTOFF'))
dataset/ETHPy150Open Havate/havate-openstack/proto-build/gui/horizon/Horizon_GUI/openstack_dashboard/dashboards/project/databases/tables.py/RestartInstance.allowed/swapped operands of `in`