You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by jg...@apache.org on 2018/05/17 16:08:34 UTC
[ambari] 02/02: Fix constant declaration.
This is an automated email from the ASF dual-hosted git repository.
jgolieb pushed a commit to branch branch-feature-AMBARI-14714
in repository https://gitbox.apache.org/repos/asf/ambari.git
commit b8fef94c6abf9ebc0df34cf3e3e08760442fb7f4
Author: Jason Golieb <jg...@hortonworks.com>
AuthorDate: Wed May 16 16:34:54 2018 -0700
Fix constant declaration.
---
ambari-web/app/utils/constants.js | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/ambari-web/app/utils/constants.js b/ambari-web/app/utils/constants.js
index 0695d3e..06defe9 100644
--- a/ambari-web/app/utils/constants.js
+++ b/ambari-web/app/utils/constants.js
@@ -28,11 +28,13 @@ App.False = false;
App.True = true;
//upgrade process states
-App.UpgradeState.NotRequired = 'NOT_REQUIRED';
-App.UpgradeState.Pending = 'PENDING';
-App.UpgradeState.InProgress = 'IN_PROGRESS';
-App.UpgradeState.Holding = 'HOLDING';
-App.UpgradeState.Completed = 'COMPLETED';
-App.UpgradeState.Aborted = 'ABORTED';
-App.UpgradeState.Failed = 'HOLDING_FAILED';
-App.UpgradeState.Timeout = 'HOLDING_TIMEDOUT';
\ No newline at end of file
+App.UpgradeState = {
+ NotRequired: 'NOT_REQUIRED',
+ Pending: 'PENDING',
+ InProgress: 'IN_PROGRESS',
+ Holding: 'HOLDING',
+ Completed: 'COMPLETED',
+ Aborted: 'ABORTED',
+ Failed: 'HOLDING_FAILED',
+ Timeout: 'HOLDING_TIMEDOUT'
+}
\ No newline at end of file
--
To stop receiving notification emails like this one, please contact
jgolieb@apache.org.