From d9ac9d466cfbbfa53d6014dfe374e8ea98887c4e Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Fri, 16 Nov 2018 10:41:12 +0100 Subject: [PATCH] test_build_key_path_bootstrap_osd: fix MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The entity name is client.bootstrap-osd (as returned by Ceph), and not bootstrap-osd. The build_key_path function split 'client.bootstrap-osd' on the '.' so using bootstrap-osd fails with index out of range. Signed-off-by: Sébastien Han --- library/test_ceph_key.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/test_ceph_key.py b/library/test_ceph_key.py index 143b6c8f3..e0b747941 100644 --- a/library/test_ceph_key.py +++ b/library/test_ceph_key.py @@ -540,7 +540,7 @@ class TestCephKeyModule(object): def test_build_key_path_bootstrap_osd(self): fake_cluster = "fake" - entity = "bootstrap-osd" + entity = "client.bootstrap-osd" expected_result = "/var/lib/ceph/bootstrap-osd/fake.keyring" result = ceph_key.build_key_path(fake_cluster, entity) assert result == expected_result -- 2.39.5