[jira] [Updated] (AIRFLOW-464) Add setdefault method to Variable Object

2016-11-02 Thread Ben Tallman (JIRA)

 [ 
https://issues.apache.org/jira/browse/AIRFLOW-464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ben Tallman updated AIRFLOW-464:

Summary: Add setdefault method to Variable Object  (was: Add create_if_none 
option to Variable.get)

> Add setdefault method to Variable Object
> 
>
> Key: AIRFLOW-464
> URL: https://issues.apache.org/jira/browse/AIRFLOW-464
> Project: Apache Airflow
>  Issue Type: Improvement
>Reporter: Ben Tallman
>Assignee: Ben Tallman
>Priority: Trivial
>
> In order to assist with environment migrations, add a create_if_none option
> to the Variable.get function. This allows default variables to be created 
> (and then
> edited) with less chance for typos/copy+paste bugs.



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


[jira] [Updated] (AIRFLOW-464) Add setdefault method to Variable Object

2016-11-02 Thread Ben Tallman (JIRA)

 [ 
https://issues.apache.org/jira/browse/AIRFLOW-464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ben Tallman updated AIRFLOW-464:

Description: 
In order to assist with environment migrations, we added a setdefault method to
the Variable object. This allows default variables to be created (and then
edited) with less chance for typos/copy+paste bugs.

Variable.setdefault(key, default, deserialize_json=[True|False]) returns either 
the
value stored in Variable(key) or sets Variable(key) = default and returns 
default.

  was:
In order to assist with environment migrations, add a create_if_none option
to the Variable.get function. This allows default variables to be created (and 
then
edited) with less chance for typos/copy+paste bugs.


> Add setdefault method to Variable Object
> 
>
> Key: AIRFLOW-464
> URL: https://issues.apache.org/jira/browse/AIRFLOW-464
> Project: Apache Airflow
>  Issue Type: Improvement
>Reporter: Ben Tallman
>Assignee: Ben Tallman
>Priority: Trivial
>
> In order to assist with environment migrations, we added a setdefault method 
> to
> the Variable object. This allows default variables to be created (and then
> edited) with less chance for typos/copy+paste bugs.
> Variable.setdefault(key, default, deserialize_json=[True|False]) returns 
> either the
> value stored in Variable(key) or sets Variable(key) = default and returns 
> default.



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