[AIRFLOW-1120] Update version view to include Apache prefix

Closes #2244 from criccomini/AIRFLOW-1120

(cherry picked from commit 6684597d951cb9f2fea24576a3d19534d67c89ea)


Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/1725c951
Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/1725c951
Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/1725c951

Branch: refs/heads/v1-8-stable
Commit: 1725c95163cf3a3d3b4c073922e39851e00942bf
Parents: 58a0ee7
Author: Chris Riccomini <criccom...@apache.org>
Authored: Tue Apr 18 13:53:03 2017 -0700
Committer: Chris Riccomini <criccom...@apache.org>
Committed: Tue Apr 18 13:53:55 2017 -0700

----------------------------------------------------------------------
 airflow/www/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/1725c951/airflow/www/views.py
----------------------------------------------------------------------
diff --git a/airflow/www/views.py b/airflow/www/views.py
index fec4779..53c6394 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -2513,7 +2513,7 @@ class VersionView(wwwutils.SuperUserMixin, LoggingMixin, 
BaseView):
     def version(self):
         # Look at the version from setup.py
         try:
-            airflow_version = pkg_resources.require("airflow")[0].version
+            airflow_version = 
pkg_resources.require("apache-airflow")[0].version
         except Exception as e:
             airflow_version = None
             self.logger.error(e)

Reply via email to