Merge pull request #1158 from jumpserver/dev

bugfix for celery log path
This commit is contained in:
老广 2018-04-03 14:50:49 +08:00 committed by GitHub
commit 82d06351e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,4 +33,6 @@ class CeleryTask(models.Model):
@property @property
def full_log_path(self): def full_log_path(self):
if not self.log_path:
return None
return os.path.join(self.LOG_DIR, self.log_path) return os.path.join(self.LOG_DIR, self.log_path)