You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by rl...@apache.org on 2015/05/29 23:29:31 UTC

ambari git commit: AMBARI-11546. Capacity Scheduler: Cluster association requires Ambari URL to be filled (Erik Bergenholtz via rlevas)

Repository: ambari
Updated Branches:
  refs/heads/trunk 01e9655cf -> 7e88541ce


AMBARI-11546. Capacity Scheduler: Cluster association requires Ambari URL to be filled (Erik Bergenholtz via rlevas)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/7e88541c
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/7e88541c
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/7e88541c

Branch: refs/heads/trunk
Commit: 7e88541ce5f46405f2c73995769a7dfa00c359d9
Parents: 01e9655
Author: Erik Bergenholtz <eb...@hortonworks.com>
Authored: Fri May 29 17:29:15 2015 -0400
Committer: Robert Levas <rl...@hortonworks.com>
Committed: Fri May 29 17:29:25 2015 -0400

----------------------------------------------------------------------
 .../apache/ambari/view/capacityscheduler/PropertyValidator.java  | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/7e88541c/contrib/views/capacity-scheduler/src/main/java/org/apache/ambari/view/capacityscheduler/PropertyValidator.java
----------------------------------------------------------------------
diff --git a/contrib/views/capacity-scheduler/src/main/java/org/apache/ambari/view/capacityscheduler/PropertyValidator.java b/contrib/views/capacity-scheduler/src/main/java/org/apache/ambari/view/capacityscheduler/PropertyValidator.java
index c7c7da9..64a8796 100644
--- a/contrib/views/capacity-scheduler/src/main/java/org/apache/ambari/view/capacityscheduler/PropertyValidator.java
+++ b/contrib/views/capacity-scheduler/src/main/java/org/apache/ambari/view/capacityscheduler/PropertyValidator.java
@@ -37,6 +37,10 @@ public class PropertyValidator implements Validator {
 
   @Override
   public ValidationResult validateProperty(String property, ViewInstanceDefinition viewInstanceDefinition, ValidationContext validationContext) {
+    if (viewInstanceDefinition.getClusterHandle() != null) {
+      return ValidationResult.SUCCESS;
+    }
+
     if (property.equals(AMBARI_SERVER_URL)) {
       String ambariServerUrl = viewInstanceDefinition.getPropertyMap().get(AMBARI_SERVER_URL);
       URL url = null;