From 0825f4e26212bb7e6bc4cd5a82f7962f1ac927ca Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Mon, 24 Apr 2017 23:35:40 -0700 Subject: [PATCH] test/librados_test_stub/LibradosTestStub.cc: accept ENOENT Missing ceph.conf now returns ENOENT rather than EINVAL Signed-off-by: Dan Mick --- src/test/librados_test_stub/LibradosTestStub.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/librados_test_stub/LibradosTestStub.cc b/src/test/librados_test_stub/LibradosTestStub.cc index dcbc8e25f7d08..2c747e7644033 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; } -- 2.39.5