]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/nfs: simplify implementation of _indentation function
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 21 Apr 2022 19:05:13 +0000 (15:05 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 26 Apr 2022 17:38:22 +0000 (13:38 -0400)
Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/pybind/mgr/nfs/ganesha_conf.py

index 71ae5245cbe5f7f680f3d94ebd7e89148e9839f6..382b91827e3a110fe7c8d27b1b498d330755b89c 100644 (file)
@@ -11,10 +11,7 @@ if TYPE_CHECKING:
 
 
 def _indentation(depth: int, size: int = 4) -> str:
-    conf_str = ""
-    for _ in range(0, depth * size):
-        conf_str += " "
-    return conf_str
+    return " " * (depth * size)
 
 
 class RawBlock():