Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6088a18

Browse files
Delete machines once, after templates are loaded (#1436)
1 parent 707dc86 commit 6088a18

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

‎core/src/main/python/wlsdeploy/tool/create/domain_creator.py‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ def __create_ws_security(self, location):
875875
self.logger.exiting(class_name=self.__class_name, method_name=_method_name)
876876
return
877877

878-
def __create_machines(self, location):
878+
def __create_machines(self, location, delete_now=True):
879879
"""
880880
Create the /Machine and /UnixMachine folder objects, if any.
881881
:param location: the location to use
@@ -888,9 +888,10 @@ def __create_machines(self, location):
888888
unix_machine_nodes = dictionary_utils.get_dictionary_element(self._topology, UNIX_MACHINE)
889889

890890
if len(machine_nodes) > 0:
891-
self._create_named_mbeans(MACHINE, machine_nodes, location, log_created=True)
891+
self._create_named_mbeans(MACHINE, machine_nodes, location, log_created=True, delete_now=delete_now)
892892
if len(unix_machine_nodes) > 0:
893-
self._create_named_mbeans(UNIX_MACHINE, unix_machine_nodes, location, log_created=True)
893+
self._create_named_mbeans(UNIX_MACHINE, unix_machine_nodes, location, log_created=True,
894+
delete_now=delete_now)
894895
self.logger.exiting(class_name=self.__class_name, method_name=_method_name)
895896
return
896897

@@ -907,7 +908,7 @@ def __create_machines_clusters_and_servers(self, delete_now=True):
907908
location.add_name_token(domain_name_token, self._domain_name)
908909
self.logger.entering(str_helper.to_string(location), class_name=self.__class_name, method_name=_method_name)
909910

910-
self.__create_machines(location)
911+
self.__create_machines(location, delete_now=delete_now)
911912
#
912913
# In order for source domain provisioning to work with dynamic clusters, we have to provision
913914
# the ServerTemplates. There is a cyclical dependency between Server Template and Clusters so we

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /