From 084c9293050eb78a6da9f6dac41f71507b8098a2 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Tue, 23 Jul 2013 14:52:37 -0400 Subject: Cfg: added missing docstring --- src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lib/Bcfg2/Server/Plugins') diff --git a/src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py b/src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py index 44455ff13..7f271fc7f 100644 --- a/src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py +++ b/src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py @@ -942,6 +942,10 @@ class CfgLint(Bcfg2.Server.Lint.ServerPlugin): (basename, pubkey)) def _list_path_components(self, path): + """ Get a list of all components of a path. E.g., + ``self._list_path_components("/foo/bar/foobaz")`` would return + ``["foo", "bar", "foo", "baz"]``. The list is not guaranteed + to be in order.""" rv = [] remaining, component = os.path.split(path) while component != '': -- cgit v1.2.3-1-g7c22