def save(): """ Save the outstanding Weblogic Server configuration changes for the current edit session. :raises: PyWLSTException: if a WLST error occurs """ _method_name = 'save' _logger.entering(class_name=_class_name, method_name=_method_name) try: wlst.save() except wlst.WLSTException, e: pwe = exception_helper.create_pywlst_exception('WLSDPLY-00052', _format_exception(e), error=e) _logger.throwing(class_name=_class_name, method_name=_method_name, error=pwe) raise pwe
def save(): wlst.save()
print 'Filestores...end.' print 'datasources...' deleteDataSource('oraclePool_' + sliceName) print 'datasources...end.' print 'servers...' deleteServer(sliceName) print 'servers...end.' print 'machines...' deleteUnixMachine('localhost') print 'machines...end.' except Exception, e: print e print "Error while trying to execute the script" wlst.dumpStack() raise try: wlst.save() wlst.activate(block="true") print "script returns SUCCESS" except Exception, e: print e print "Error while trying to save and/or activate!!!" wlst.dumpStack() raise