You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@aurora.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2016/07/26 03:25:20 UTC

[jira] [Commented] (AURORA-1741) Fix pystachio binding bug introduced by AURORA-1710

    [ https://issues.apache.org/jira/browse/AURORA-1741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15393140#comment-15393140 ] 

Hudson commented on AURORA-1741:
--------------------------------

SUCCESS: Integrated in Aurora #1564 (See [https://builds.apache.org/job/Aurora/1564/])
AURORA-1741 Fix pystachio binding bug introduced by AURORA-1710 (maxim: rev 08792d43350ab981af23786d300c199d9b409151)
* src/main/python/apache/aurora/client/config.py


> Fix pystachio binding bug introduced by AURORA-1710
> ---------------------------------------------------
>
>                 Key: AURORA-1741
>                 URL: https://issues.apache.org/jira/browse/AURORA-1741
>             Project: Aurora
>          Issue Type: Bug
>          Components: Client
>            Reporter: Mehrdad Nurolahzade
>            Assignee: Mehrdad Nurolahzade
>            Priority: Minor
>
> As part of [AURORA-1710] a warning message was added to the client toolset that warns users about the use of the {{production}} flag.
> {code}
> def _validate_deprecated_config(config):
>   task = config.job().taskConfig
>   if task.production and task.tier is None:
>     deprecation_warning(PRODUCTION_DEPRECATED_WARNING)
> {code}
> This logic can potentially fail if configuration contains unbound bindings at this point. We could simply rely on the raw configuration for this:
> {code}
> def _validate_deprecated_config(config):
>   if config.raw().production().get() and config.raw().tier() is Empty:
>     deprecation_warning(PRODUCTION_DEPRECATED_WARNING)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)