diff --git a/app.py b/app.py index 95a9c64..8ec39fb 100644 --- a/app.py +++ b/app.py @@ -47,6 +47,7 @@ class Host(db.Model): daemon_url = db.Column(db.String(255), nullable=True) daemon_token = db.Column(db.String(255), nullable=True) disable_regex_deploy = db.Column(db.Boolean, default=False) + @property def resolved_hostname(self): try: @@ -54,7 +55,7 @@ class Host(db.Model): except Exception: return self.hostname - @property + def resolved_daemon(self): if self.use_daemon and self.daemon_url: try: