]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common/ConfUtils: do not throw exception when querying file status
authorJason Dillaman <dillaman@redhat.com>
Wed, 21 Aug 2019 21:18:30 +0000 (17:18 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 22 Aug 2019 12:04:44 +0000 (08:04 -0400)
commit57e684911b1948f780cd9d7409050aedf2bc6dd8
tree960c2aa36d98bf9c13a97e698ea0602b74a1edcf
parent591fb2bf686be770fc07d7b02d54c4ccff81620f
common/ConfUtils: do not throw exception when querying file status

The "fs::is_other" call was throwing a "fs::filesystem_error" if the
configuration file was not able to be accessed. This should fail
gracefully.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/common/ConfUtils.cc