diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2010-04-17 02:53:36 +0000 |
---|---|---|
committer | Sol Jerome <solj@ices.utexas.edu> | 2010-04-17 16:21:44 -0500 |
commit | c688c4592be717cb28dabd13d6441c4c7c5bca06 (patch) | |
tree | 27072517bb269596ac331b1621f5448bc4ebd1fa /src/lib/Server | |
parent | 665456d89a54c6b5ec3f534a3ce1105df9a3b6e4 (diff) | |
download | bcfg2-c688c4592be717cb28dabd13d6441c4c7c5bca06.tar.gz bcfg2-c688c4592be717cb28dabd13d6441c4c7c5bca06.tar.bz2 bcfg2-c688c4592be717cb28dabd13d6441c4c7c5bca06.zip |
Packages: fix handling of negative recommended directive
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5828 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server')
-rw-r--r-- | src/lib/Server/Plugins/Packages.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Packages.py b/src/lib/Server/Plugins/Packages.py index 8171785b1..875562456 100644 --- a/src/lib/Server/Plugins/Packages.py +++ b/src/lib/Server/Plugins/Packages.py @@ -34,8 +34,10 @@ def source_from_xml(xsource): if ret['components'] == []: ret['components'] = ['placeholder'] try: - if xsource.find('Recommended').text == 'true': + if xsource.find('Recommended').text in ['True', 'true']: ret['recommended'] = True + else: + ret['recommended'] = False except: ret['recommended'] = False if xsource.find('RawURL') is not None: |