]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: fix the indent
authorKefu Chai <tchaikov@gmail.com>
Mon, 10 Oct 2022 14:43:23 +0000 (22:43 +0800)
committerAdam King <adking@redhat.com>
Wed, 12 Oct 2022 21:17:12 +0000 (17:17 -0400)
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit 38dc57ac9a88dafbe73038ea757dfa778c6191a7)

Conflicts:
src/cephadm/tests/fixtures.py

src/cephadm/tests/fixtures.py

index 2cd41be85de98fd776c3c4e83d7643da9f5ad17e..45990d910b6b82c540b69340863c255ff9aa76e9 100644 (file)
@@ -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