]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr/snap-schedule: close a string with single quote
authorKefu Chai <kchai@redhat.com>
Fri, 29 Jan 2021 05:38:20 +0000 (13:38 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 29 Jan 2021 11:42:32 +0000 (19:42 +0800)
if it starts with single quote, we should close it with a single quote
also.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/snap_schedule/fs/schedule.py

index 714be62f748170c357a6ad79bd3544ca47e9d9bd..ec9e94ab4084d28e6d4406a47b0fed6eb278375d 100644 (file)
@@ -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,