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