Skip to content

Commit 778b95e

Browse files
authored
Fix lowercase adminserver name (#4035)
* Fix when AdminServerName not specified and the filter generates AdminServer which conflicts if the model has a server named adminserver (lower cased) where the listen address will be the same for both server and WLS does not allow that.
1 parent 700d155 commit 778b95e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

operator/src/main/resources/scripts/model-wdt-create-filter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ def filter_model(model):
1919
admin_server = topology['AdminServerName']
2020
else:
2121
# weblogic default
22+
if 'Server' in topology and 'adminserver' in topology['Server']:
23+
raise ValueError('Your model does not have AdminServerName set in the topology section but have a server named "adminserver" in topology/Server section, this is not supported. Please set the AdminServerName attribute in the topology section to the actual administration server name')
2224
admin_server = 'AdminServer'
2325
model['topology'] = {}
2426
model['topology']['AdminServerName'] = admin_server

0 commit comments

Comments
 (0)