stratos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From daksh...@apache.org
Subject stratos git commit: fix missing if condition
Date Tue, 16 Jun 2015 09:42:47 GMT
Repository: stratos
Updated Branches:
  refs/heads/master 0aa72975d -> 22de6a65a


fix missing if condition


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/22de6a65
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/22de6a65
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/22de6a65

Branch: refs/heads/master
Commit: 22de6a65a12495037c2f1ea47a6d87014186d186
Parents: 0aa7297
Author: Dakshika Jayathilaka <sinhaladjs@gmail.com>
Authored: Tue Jun 16 15:12:28 2015 +0530
Committer: Dakshika Jayathilaka <sinhaladjs@gmail.com>
Committed: Tue Jun 16 15:12:28 2015 +0530

----------------------------------------------------------------------
 .../console/configure_form.jag                                 | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/22de6a65/components/org.apache.stratos.manager.console/console/configure_form.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/configure_form.jag b/components/org.apache.stratos.manager.console/console/configure_form.jag
index 3c39cb2..92fa4d2 100644
--- a/components/org.apache.stratos.manager.console/console/configure_form.jag
+++ b/components/org.apache.stratos.manager.console/console/configure_form.jag
@@ -66,9 +66,11 @@ if (!elements) {
                 formDataRaw = require('controllers/forms/default/configure/' + elements.formtype
+ '.json'),
                 formTitle = formData.title,
                 buttonText = formData.name;
+        if(elements.formtype == 'network-partitions'){
+            var iaasProviders = util.RESTCalls.getIaaSProviders();
+            formData['properties']['provider']['enum'] = iaasProviders['iaasProviders'];
+        }
 
-        var iaasProviders = util.RESTCalls.getIaaSProviders();
-        formData['properties']['provider']['enum'] = iaasProviders['iaasProviders'];
 
     } catch (e) {
         log.error(e.message);


Mime
View raw message