Repository: aurora Updated Branches: refs/heads/master 380307ac1 -> 08792d433
AURORA-1741 Fix pystachio binding bug introduced by AURORA-1710 Bugs closed: AURORA-1741 Reviewed at https://reviews.apache.org/r/50432/ Project: http://git-wip-us.apache.org/repos/asf/aurora/repo Commit: http://git-wip-us.apache.org/repos/asf/aurora/commit/08792d43 Tree: http://git-wip-us.apache.org/repos/asf/aurora/tree/08792d43 Diff: http://git-wip-us.apache.org/repos/asf/aurora/diff/08792d43 Branch: refs/heads/master Commit: 08792d43350ab981af23786d300c199d9b409151 Parents: 380307a Author: Mehrdad Nurolahzade <[email protected]> Authored: Mon Jul 25 20:02:25 2016 -0700 Committer: Maxim Khutornenko <[email protected]> Committed: Mon Jul 25 20:02:25 2016 -0700 ---------------------------------------------------------------------- src/main/python/apache/aurora/client/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/aurora/blob/08792d43/src/main/python/apache/aurora/client/config.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/config.py b/src/main/python/apache/aurora/client/config.py index 96cd9dd..0186af5 100644 --- a/src/main/python/apache/aurora/client/config.py +++ b/src/main/python/apache/aurora/client/config.py @@ -22,6 +22,7 @@ import math import re import sys +from pystachio import Empty from twitter.common import log from apache.aurora.client import binding_helper @@ -133,8 +134,7 @@ def deprecation_warning(text): def _validate_deprecated_config(config): - task = config.job().taskConfig - if task.production and task.tier is None: + if config.raw().production().get() and config.raw().tier() is Empty: deprecation_warning(PRODUCTION_DEPRECATED_WARNING)
