def reboot(reboot_cmd=""): ev_type = _pbs_v1.event().type if ((ev_type & _pbs_v1.MOM_EVENTS) == 0): raise NotImplementedError("reboot(): only for mom hooks") _pbs_v1.reboot(reboot_cmd) raise SystemExit
def reboot(reboot_cmd=""): ev_type = _pbs_v1.event().type if ( (ev_type & _pbs_v1.MOM_EVENTS) == 0 ): raise NotImplementedError("reboot(): only for mom hooks") _pbs_v1.reboot(reboot_cmd) raise SystemExit