]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/snap_schedule: validate fs before execution
authorMilind Changire <mchangir@redhat.com>
Wed, 9 Aug 2023 11:20:40 +0000 (16:50 +0530)
committerMilind Changire <mchangir@redhat.com>
Fri, 25 Aug 2023 16:04:39 +0000 (21:34 +0530)
commitc612ce06300fa99f750ce99ef68dbd49ced16c34
tree1e1a542ae2931aab9060a19967dc00769847572a
parentaa69aea3b14602ea7dacb232e8c78669d85844f0
mgr/snap_schedule: validate fs before execution

Stop command execution if there are more than one filesystem and --fs
argument is missing in command-line, i.e. do not use the first fs in the
fsmap if there are more than one filesystem.
This is to ensure that user doesn't mistakenly run the command against
the first fs by missing to specify the desired fs.

Fixes: https://tracker.ceph.com/issues/62218
Signed-off-by: Milind Changire <mchangir@redhat.com>
src/pybind/mgr/snap_schedule/module.py