diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Bcfg2/Server/Plugins/SEModules.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/SEModules.py b/src/lib/Bcfg2/Server/Plugins/SEModules.py index 8093d34ca..324c2309f 100644 --- a/src/lib/Bcfg2/Server/Plugins/SEModules.py +++ b/src/lib/Bcfg2/Server/Plugins/SEModules.py @@ -25,9 +25,10 @@ class SEModules(Bcfg2.Server.Plugin.GroupSpool): to be able to specify module entries as name='foo' or name='foo.pp', so we put this abstraction in between """ if entry.get("name").endswith(".pp"): - return entry.get("name") + name = entry.get("name") else: - return entry.get("name") + ".pp" + name = entry.get("name") + ".pp" + return name.lstrip("/") def HandlesEntry(self, entry, metadata): if entry.tag in self.Entries and entry.get('type') == 'module': |