From: John Mulligan Date: Thu, 21 Apr 2022 19:05:13 +0000 (-0400) Subject: mgr/nfs: simplify implementation of _indentation function X-Git-Tag: v18.0.0~948^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6b33cec65724db7c0894d4aa2bdf320448eb2dc4;p=ceph.git mgr/nfs: simplify implementation of _indentation function Signed-off-by: John Mulligan --- 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():