-
Notifications
You must be signed in to change notification settings - Fork 89
Closed
Description
If you use the minimal model from https://github.com/oracle/weblogic-deploy-tooling/blob/master/site/create.md, you get an error currently on these two lines:
weblogic-deploy-tooling/core/src/main/python/wlsdeploy/tool/create/domain_creator.py
Line 490 in 105c9e6
| if len(server_assigns) > 0: |
weblogic-deploy-tooling/core/src/main/python/wlsdeploy/tool/create/domain_creator.py
Line 496 in 105c9e6
| if len(dynamic_assigns) > 0: |
The reason is that server_assigns and dynamic_assigns are None. A simple fix is this, which does the same thing for objects with a length and works also with None:
diff --git a/core/src/main/python/wlsdeploy/tool/create/domain_creator.py b/core/src/main/python/wlsdeploy/tool/create/domain_creator.py
index 8663db0..3a15346 100644
--- a/core/src/main/python/wlsdeploy/tool/create/domain_creator.py
+++ b/core/src/main/python/wlsdeploy/tool/create/domain_creator.py
@@ -487,13 +487,13 @@ class DomainCreator(Creator):
server_groups_to_target = self._domain_typedef.get_server_groups_to_target()
server_assigns, dynamic_assigns = self.target_helper.target_server_groups_to_servers(server_groups_to_target)
- if len(server_assigns) > 0:
+ if server_assigns:
self.target_helper.target_server_groups(server_assigns)
self.wlst_helper.write_domain(domain_home)
self.wlst_helper.close_template()
- if len(dynamic_assigns) > 0:
+ if dynamic_assigns:
self.target_helper.target_server_groups_to_dynamic_clusters(dynamic_assigns)
self.logger.exiting(class_name=self.__class_name, method_name=_method_name)Metadata
Metadata
Assignees
Labels
No labels