From: Kefu Chai Date: Mon, 10 Oct 2022 14:43:23 +0000 (+0800) Subject: cephadm: fix the indent X-Git-Tag: v16.2.11~249^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d0020361babec504acc1d6384d5bdfec6b925066;p=ceph.git cephadm: fix the indent Signed-off-by: Kefu Chai (cherry picked from commit 38dc57ac9a88dafbe73038ea757dfa778c6191a7) Conflicts: src/cephadm/tests/fixtures.py --- diff --git a/src/cephadm/tests/fixtures.py b/src/cephadm/tests/fixtures.py index 2cd41be85de9..45990d910b6b 100644 --- a/src/cephadm/tests/fixtures.py +++ b/src/cephadm/tests/fixtures.py @@ -81,16 +81,16 @@ def cephadm_fs( mock.patch('platform.processor', return_value='x86_64'), \ mock.patch('cephadm.extract_uid_gid', return_value=(uid, gid)): - if not fake_filesystem.is_root(): - fake_filesystem.set_uid(0) + if not fake_filesystem.is_root(): + fake_filesystem.set_uid(0) - fs.create_dir(cd.DATA_DIR) - fs.create_dir(cd.LOG_DIR) - fs.create_dir(cd.LOCK_DIR) - fs.create_dir(cd.LOGROTATE_DIR) - fs.create_dir(cd.UNIT_DIR) + fs.create_dir(cd.DATA_DIR) + fs.create_dir(cd.LOG_DIR) + fs.create_dir(cd.LOCK_DIR) + fs.create_dir(cd.LOGROTATE_DIR) + fs.create_dir(cd.UNIT_DIR) - yield fs + yield fs @contextmanager