]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/librados_test_stub/LibradosTestStub.cc: accept ENOENT
authorDan Mick <dan.mick@redhat.com>
Tue, 25 Apr 2017 06:35:40 +0000 (23:35 -0700)
committerDan Mick <dan.mick@redhat.com>
Tue, 25 Apr 2017 06:35:40 +0000 (23:35 -0700)
Missing ceph.conf now returns ENOENT rather than EINVAL

Signed-off-by: Dan Mick <dan.mick@redhat.com>
src/test/librados_test_stub/LibradosTestStub.cc

index dcbc8e25f7d0838600fbba5e4d8ec1855f0b263f..2c747e7644033efdd2e70b75064d4a68c0fc0800 100644 (file)
@@ -170,7 +170,7 @@ extern "C" int rados_conf_read_file(rados_t cluster, const char *path) {
     conf->parse_env();
     conf->apply_changes(NULL);
     conf->complain_about_parse_errors(client->cct());
-  } else if (ret == -EINVAL) {
+  } else if (ret == -ENOENT) {
     // ignore missing client config
     return 0;
   }