From: John Mulligan Date: Thu, 21 Apr 2022 19:05:13 +0000 (-0400) Subject: mgr/nfs: simplify implementation of _indentation function X-Git-Tag: v17.2.1~48^2~49 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=25e13d7228ef98e1ad3299e4b768764eff4c9202;p=ceph.git mgr/nfs: simplify implementation of _indentation function Signed-off-by: John Mulligan (cherry picked from commit 6b33cec65724db7c0894d4aa2bdf320448eb2dc4) --- diff --git a/src/pybind/mgr/nfs/ganesha_conf.py b/src/pybind/mgr/nfs/ganesha_conf.py index 71ae5245cbe5..382b91827e3a 100644 --- a/src/pybind/mgr/nfs/ganesha_conf.py +++ b/src/pybind/mgr/nfs/ganesha_conf.py @@ -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():