def METHOD_NAME(Name, Value, Ensure):
    retval = -1
    try:
        p = Params(Name, Value, Ensure)
    except Exception, e:
        LG().Log('ERROR', 'ERROR - Unable to initialize nxNopProvider. ' + str(e))
        return [retval]
    if p.Ensure == 'present':
        if p.Value == 'fail':
            LG().Log('ERROR', 'ERROR - Failing Set(present) due to Value = "fail".' + str(e))
        else:
            retval = 0
    else:
        if p.Value == 'fail':
            LG().Log('ERROR', 'ERROR - Failing Set(absent) due to Value = "fail". ' + str(e))
        else:
            retval = 0
    return [retval]