From e339e0fb56990fc72a58fc976548a1435d5ba80b Mon Sep 17 00:00:00 2001 From: Marc Aymerich Date: Fri, 28 Oct 2016 10:31:11 +0000 Subject: [PATCH] Make sure miscellaneous identifiers are all lowercase --- orchestra/contrib/miscellaneous/models.py | 2 +- orchestra/contrib/resources/backends.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/orchestra/contrib/miscellaneous/models.py b/orchestra/contrib/miscellaneous/models.py index 82c0a5b6..c5ab30f2 100644 --- a/orchestra/contrib/miscellaneous/models.py +++ b/orchestra/contrib/miscellaneous/models.py @@ -81,5 +81,5 @@ class Miscellaneous(models.Model): def clean(self): if self.identifier: - self.identifier = self.identifier.strip() + self.identifier = self.identifier.strip().lower() self.description = self.description.strip() diff --git a/orchestra/contrib/resources/backends.py b/orchestra/contrib/resources/backends.py index cb78b2b6..2ca21c23 100644 --- a/orchestra/contrib/resources/backends.py +++ b/orchestra/contrib/resources/backends.py @@ -88,7 +88,7 @@ class ServiceMonitor(ServiceBackend): def execute(self, *args, **kwargs): log = super(ServiceMonitor, self).execute(*args, **kwargs) - if log.state == BackendLog.SUCCESS: + if log.state == log.SUCCESS: self.store(log) return log