def snapshotScheduleDisable(): command = [_snapSchedulerPath.cmd, "disable_force"] rc, out, err = commands.execCmd(command) if rc not in [0, SNAP_SCHEDULER_ALREADY_DISABLED_RC]: raise ge.GlusterDisableSnapshotScheduleFailedException( rc) return True
def snapshotScheduleDisable(): command = [_snapSchedulerPath.cmd, "disable_force"] try: commands.run(command) except cmdutils.Error as e: if e.rc != SNAP_SCHEDULER_ALREADY_DISABLED_RC: raise ge.GlusterDisableSnapshotScheduleFailedException(e.rc) return True