]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/ceph_argparse.py: do not create file for validating CephFilepath 24578/head
authorKefu Chai <kchai@redhat.com>
Mon, 15 Oct 2018 08:55:17 +0000 (16:55 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 15 Oct 2018 08:55:18 +0000 (16:55 +0800)
commit90c2c28680a750dc268e44410cdc176995fc6756
treebdc00fa5ed33e119978b746b0161fbc83d8d192f
parent1d92788f711ef870d58317376436992e13f6b8f0
pybind/ceph_argparse.py: do not create file for validating CephFilepath

before this change, a file is opened with append mode for validating the
specified CephFilepath argument. but this file is never removed after
the validation. we cannot assume that this file will be overwritten or
removed by the Ceph daemon who serves the command.

after this change, no file is created for the validation, instead we
check if the file is readable or writable.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/ceph_argparse.py