From: Dan Mick Date: Tue, 25 Apr 2017 06:35:40 +0000 (-0700) Subject: test/librados_test_stub/LibradosTestStub.cc: accept ENOENT X-Git-Tag: v12.0.3~245^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0825f4e26212bb7e6bc4cd5a82f7962f1ac927ca;p=ceph.git test/librados_test_stub/LibradosTestStub.cc: accept ENOENT Missing ceph.conf now returns ENOENT rather than EINVAL Signed-off-by: Dan Mick --- diff --git a/src/test/librados_test_stub/LibradosTestStub.cc b/src/test/librados_test_stub/LibradosTestStub.cc index dcbc8e25f7d0..2c747e764403 100644 --- a/src/test/librados_test_stub/LibradosTestStub.cc +++ b/src/test/librados_test_stub/LibradosTestStub.cc @@ -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; }