Skip to content

Commit 7cf4cfb

Browse files
authored
Fix adminserver name 34 (#4034)
* Fix when the AdminServerName is not set in the model and the user has a server named adminserver, this causes the filter generates the listen address to be the same (all lowercased), WLS does not support that.
1 parent 150202e commit 7cf4cfb

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
@@ -18,6 +18,8 @@ def filter_model(model):
1818
admin_server = topology['AdminServerName']
1919
else:
2020
# weblogic default
21+
if 'Server' in topology and 'adminserver' in topology['Server']:
22+
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')
2123
admin_server = 'AdminServer'
2224
model['topology'] = {}
2325
model['topology']['AdminServerName'] = admin_server

0 commit comments

Comments
 (0)