commit 82fcce19e7a883d12147e325ce2244c3cb0a94c5 Author: Jiri Prochazka jprochaz@redhat.com Date: Tue Apr 21 15:10:50 2015 +0200
Fix "Undefined variable 'comapator'"
Found with pylint. Fix typo in PerfRepo module.
Signed-off-by: Jiri Prochazka jprochaz@redhat.com Signed-off-by: Jiri Pirko jiri@resnulli.us
lnst/Controller/PerfRepo.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) --- diff --git a/lnst/Controller/PerfRepo.py b/lnst/Controller/PerfRepo.py index 399f9d5..21d1eaa 100644 --- a/lnst/Controller/PerfRepo.py +++ b/lnst/Controller/PerfRepo.py @@ -347,7 +347,7 @@ class PerfRepoMetric(PerfRepoObject): self._description = description
def set_comparator(self, comparator): - if comapator not in ["HB", "LB"]: + if comparator not in ["HB", "LB"]: raise PerfRepoException("Invalid comparator value.") self._comparator = comparator
lnst-developers@lists.fedorahosted.org