biemond/biemond-orawls

View on GitHub
files/providers/wls_jms_module/create_modify.py.erb

Summary

Maintainability
Test Coverage
# check the domain else we need to skip this (done in wls_access.rb)
real_domain='<%= domain %>'

wlst_action = '<%= wlst_action %>'

name          = '<%= jms_module_name %>'
target        = '<%= target %>'
targettype    = '<%= targettype %>'

edit()
startEdit()

try:

    cd('/')
    if wlst_action == 'create':
        cmo.createJMSSystemResource(name)

    cd('/SystemResources/'+name)

    targetList = target_list(String(target).split(","), String(targettype).split(","))
    set('Targets', targetList)

    save()
    activate()
    report_back_success()

except:
    report_back_error()