From 362b87f72ab051fe0ce0adb4d896e205c60bd589 Mon Sep 17 00:00:00 2001 From: itay Date: Tue, 23 Apr 2019 14:44:09 +0300 Subject: [PATCH] Use hardcoded version --- monkey/monkey_island/cc/environment/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/environment/__init__.py b/monkey/monkey_island/cc/environment/__init__.py index bc53ced92..ffa85693c 100644 --- a/monkey/monkey_island/cc/environment/__init__.py +++ b/monkey/monkey_island/cc/environment/__init__.py @@ -13,6 +13,7 @@ class Environment(object): _MONGO_URL = os.environ.get("MONKEY_MONGO_URL", "mongodb://localhost:27017/monkeyisland") _DEBUG_SERVER = False _AUTH_EXPIRATION_TIME = timedelta(hours=1) + _MONKEY_VERSION = "1.6.2" def __init__(self): self.config = None @@ -44,7 +45,7 @@ class Environment(object): return self.get_deployment() == 'develop' def get_version(self): - return self._get_from_config('monkey_version', 'unknown') + ('-dev' if self.is_develop() else '') + return self._MONKEY_VERSION + ('-dev' if self.is_develop() else '') def _get_from_config(self, key, default_value=None): val = default_value