You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by cr...@apache.org on 2017/04/03 20:11:00 UTC
incubator-airflow git commit: [AIRFLOW-1054] Fix broken import in
test_dag
Repository: incubator-airflow
Updated Branches:
refs/heads/master daa281c03 -> c64e876bd
[AIRFLOW-1054] Fix broken import in test_dag
Closes #2201 from
r39132/fix_broken_import_on_test_dag
Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/c64e876b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/c64e876b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/c64e876b
Branch: refs/heads/master
Commit: c64e876bd50eeb6c9e2600ac9d832c05eb5e9640
Parents: daa281c
Author: Siddharth Anand <si...@yahoo.com>
Authored: Mon Apr 3 13:10:51 2017 -0700
Committer: Chris Riccomini <cr...@apache.org>
Committed: Mon Apr 3 13:10:51 2017 -0700
----------------------------------------------------------------------
dags/test_dag.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/c64e876b/dags/test_dag.py
----------------------------------------------------------------------
diff --git a/dags/test_dag.py b/dags/test_dag.py
index db0b648..f2a9f6a 100644
--- a/dags/test_dag.py
+++ b/dags/test_dag.py
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+from airflow import utils
from airflow import DAG
from airflow.operators.dummy_operator import DummyOperator
from datetime import datetime, timedelta
@@ -24,7 +25,7 @@ DAG_NAME = 'test_dag_v1'
default_args = {
'owner': 'airflow',
'depends_on_past': True,
- 'start_date': airflow.utils.dates.days_ago(2)
+ 'start_date': utils.dates.days_ago(2)
}
dag = DAG(DAG_NAME, schedule_interval='*/10 * * * *', default_args=default_args)