diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2006-11-21 16:09:01 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2006-11-21 16:09:01 +0000 |
commit | 1a6ad11ecc79a6bfa3e0ed1a2cf6d5e0e9057081 (patch) | |
tree | 1556ba4f7e4a52e3327f20a34987f481a51a1a4d /src/lib | |
parent | 5390ade978064502104ea2c36ca34d812ccea718 (diff) | |
download | bcfg2-1a6ad11ecc79a6bfa3e0ed1a2cf6d5e0e9057081.tar.gz bcfg2-1a6ad11ecc79a6bfa3e0ed1a2cf6d5e0e9057081.tar.bz2 bcfg2-1a6ad11ecc79a6bfa3e0ed1a2cf6d5e0e9057081.zip |
Fix case where generators or structures line in cf file are empty (Resolves Ticket #274)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2507 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Server/Core.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/Server/Core.py b/src/lib/Server/Core.py index 65d45abcd..1ca4cdea1 100644 --- a/src/lib/Server/Core.py +++ b/src/lib/Server/Core.py @@ -229,6 +229,7 @@ class Core(object): structures = self.cfile.get('server', 'structures').split(',') generators = self.cfile.get('server', 'generators').split(',') + [data.remove('') for data in [structures, generators] if '' in data] for plugin in structures + generators: if not self.plugins.has_key(plugin): |