AURORA-1741 Fix pystachio binding bug introduced by AURORA-1710
Bugs closed: AURORA-1741
Reviewed at https://reviews.apache.org/r/50432/
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 re
import sys
+from pystachio import Empty
from twitter.common import log
from apache.aurora.client import binding_helper
@@ -133,8 +134,7 @@
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)