|
10 | 10 | from wlsdeploy.aliases.model_constants import FRONTEND_HOST
|
11 | 11 | from wlsdeploy.aliases.model_constants import MACHINE
|
12 | 12 | from wlsdeploy.aliases.model_constants import MIGRATABLE_TARGET
|
| 13 | +from wlsdeploy.aliases.model_constants import NM_PROPERTIES |
13 | 14 | from wlsdeploy.aliases.model_constants import SECURITY
|
14 | 15 | from wlsdeploy.aliases.model_constants import SECURITY_CONFIGURATION
|
15 | 16 | from wlsdeploy.aliases.model_constants import SERVER
|
@@ -114,6 +115,9 @@ def update(self):
|
114 | 115 | # /Security cannot be updated on existing domain
|
115 | 116 | folder_list.remove(SECURITY)
|
116 | 117 |
|
| 118 | + # /NMProperties were handled before first updateDomain |
| 119 | + folder_list.remove(NM_PROPERTIES) |
| 120 | + |
117 | 121 | self._security_provider_creator.create_security_configuration(location)
|
118 | 122 | folder_list.remove(SECURITY_CONFIGURATION)
|
119 | 123 |
|
@@ -187,6 +191,16 @@ def update_machines_clusters_and_servers(self, delete_now=True):
|
187 | 191 | def clear_placeholder_targeting(self, jdbc_names):
|
188 | 192 | self.topology_helper.clear_jdbc_placeholder_targeting(jdbc_names)
|
189 | 193 |
|
| 194 | + def update_nm_properties(self): |
| 195 | + """ |
| 196 | + The NMProperties section has to be done before the first WLST updateDomain() call in offline WLST. |
| 197 | + If it is done after, NativeVersionEnabled=true will not update correctly. |
| 198 | + """ |
| 199 | + domain_token = deployer_utils.get_domain_token(self.aliases) |
| 200 | + location = LocationContext() |
| 201 | + location.add_name_token(domain_token, self.model_context.get_domain_name()) |
| 202 | + self._process_section(self._topology, [], NM_PROPERTIES, location) |
| 203 | + |
190 | 204 | def warn_set_server_groups(self):
|
191 | 205 | # For issue in setServerGroups in online mode (new configured clusters and stand-alone managed servers
|
192 | 206 | # will not have extension template resources targeted)
|
|
0 commit comments