diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-08-09 16:45:45 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-08-09 16:45:45 -0400 |
commit | 0f7edd60e67d32438a8be42002faacde4e4a7649 (patch) | |
tree | 2b11b02f5bf4f9e7a6e609136bf2a19c8f166cc4 /src/lib/Bcfg2/Server/Lint/MergeFiles.py | |
parent | cc11ada6b8871d7719fd0ea8a2ff382bba8a3bc2 (diff) | |
download | bcfg2-0f7edd60e67d32438a8be42002faacde4e4a7649.tar.gz bcfg2-0f7edd60e67d32438a8be42002faacde4e4a7649.tar.bz2 bcfg2-0f7edd60e67d32438a8be42002faacde4e4a7649.zip |
testsuite: fixed most pylint complaints
Diffstat (limited to 'src/lib/Bcfg2/Server/Lint/MergeFiles.py')
-rw-r--r-- | src/lib/Bcfg2/Server/Lint/MergeFiles.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/Bcfg2/Server/Lint/MergeFiles.py b/src/lib/Bcfg2/Server/Lint/MergeFiles.py index dff95fbf3..972475d91 100644 --- a/src/lib/Bcfg2/Server/Lint/MergeFiles.py +++ b/src/lib/Bcfg2/Server/Lint/MergeFiles.py @@ -11,10 +11,10 @@ from Bcfg2.Server.Plugins.Cfg import CfgGenerator def threshold(val): """ Option type processor to accept either a percentage (e.g., "threshold=75") or a ratio (e.g., "threshold=.75") """ - threshold = float(val) - if threshold > 1: - threshold /= 100 - return threshold + rv = float(val) + if rv > 1: + rv /= 100 + return rv class MergeFiles(Bcfg2.Server.Lint.ServerPlugin): |