diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-06-26 16:24:48 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-06-26 16:24:48 -0400 |
commit | 9fe65b2fe9323da6583625cde1b2494352207d51 (patch) | |
tree | 671cff3d6d535549ab2a36edbf6e6eeea4269999 /src/lib/Bcfg2/Client/Tools | |
parent | 94788714a2867ebc2fcc5b80ba8a0939dcb9aa48 (diff) | |
download | bcfg2-9fe65b2fe9323da6583625cde1b2494352207d51.tar.gz bcfg2-9fe65b2fe9323da6583625cde1b2494352207d51.tar.bz2 bcfg2-9fe65b2fe9323da6583625cde1b2494352207d51.zip |
fixed yumng verify_flags option handling
Diffstat (limited to 'src/lib/Bcfg2/Client/Tools')
-rw-r--r-- | src/lib/Bcfg2/Client/Tools/YUMng.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Client/Tools/YUMng.py b/src/lib/Bcfg2/Client/Tools/YUMng.py index d58e08f57..a8c4699ed 100644 --- a/src/lib/Bcfg2/Client/Tools/YUMng.py +++ b/src/lib/Bcfg2/Client/Tools/YUMng.py @@ -442,8 +442,13 @@ class YUMng(Bcfg2.Client.Tools.PkgTool): stat['verify_fail'] = False stat['pkg'] = entry stat['modlist'] = modlist - verify_flags = inst.get('verify_flags', self.verifyFlags) - verify_flags = verify_flags.lower().replace(' ', ',').split(',') + if inst.get('verify_flags'): + # this splits on either space or comma + verify_flags = \ + inst.get('verify_flags').lower().replace(' ', + ',').split(',') + else: + verify_flags = self.verify_flags if 'arch' in nevra: # If arch is specified use it to select the package |