def activate():
    """
    Activate changes saved during the current edit session but not yet deployed.
    :raises: PyWLSTException: if a WLST error occurs
    """
    _method_name = 'activate'
    _logger.entering(class_name=_class_name, method_name=_method_name)

    try:
        wlst.activate()
    except wlst.WLSTException, e:
        pwe = exception_helper.create_pywlst_exception('WLSDPLY-00053', _format_exception(e), error=e)
        _logger.throwing(class_name=_class_name, method_name=_method_name, error=pwe)
        raise pwe
示例#2
0
def activate():
    try:
        wlst.activate()
    except WLSTException, e:
        wlst.dumpStack()
        raise e
示例#3
0
    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