From: Kefu Chai Date: Fri, 29 Jan 2021 05:38:20 +0000 (+0800) Subject: pybind/mgr/snap-schedule: close a string with single quote X-Git-Tag: v17.1.0~3116^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=52d17e5852da9a01a47fece2f74c5d7d65541f1a;p=ceph.git pybind/mgr/snap-schedule: close a string with single quote if it starts with single quote, we should close it with a single quote also. Signed-off-by: Kefu Chai --- diff --git a/src/pybind/mgr/snap_schedule/fs/schedule.py b/src/pybind/mgr/snap_schedule/fs/schedule.py index 714be62f7481..ec9e94ab4084 100644 --- a/src/pybind/mgr/snap_schedule/fs/schedule.py +++ b/src/pybind/mgr/snap_schedule/fs/schedule.py @@ -201,7 +201,7 @@ class Schedule(object): INNER JOIN schedules_meta sm ON sm.schedule_id = s.id WHERE''' - GET_SCHEDULES = PROTO_GET_SCHEDULES + ' s.path = ?''' + GET_SCHEDULES = PROTO_GET_SCHEDULES + ' s.path = ?' @classmethod def get_db_schedules(cls,