Skip to content

Error when creating a minimal domain #397

@timfel

Description

@timfel

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:

and

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions