#NEWLINE# def absent( name ) : #NEWLINE# #INDENT# '\n    Verify that the variable is not in the ``make.conf``.\n\n    name\n        The variable name. This will automatically be converted to upper\n        case since variables in ``make.conf`` are in upper case\n    ' #NEWLINE# ret = { #NEWLINE# #INDENT# 'changes' : { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , #NEWLINE# 'comment' : '' , #NEWLINE# 'name' : upper_name , #NEWLINE# 'result' : True , #NEWLINE# #UNINDENT# } #NEWLINE# upper_name = name . upper ( ) #NEWLINE# old_value = __salt__ [ 'makeconf.get_var' ] ( upper_name ) #NEWLINE# if ( old_value is None ) : #NEWLINE# #INDENT# msg = 'Variable {0} is already absent from make.conf' #NEWLINE# ret [ 'comment' ] = msg . format ( name ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if __opts__ [ 'test' ] : #NEWLINE# #INDENT# msg = 'Variable {0} is set to be removed from make.conf' #NEWLINE# ret [ 'comment' ] = msg . format ( name ) #NEWLINE# ret [ 'result' ] = None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# __salt__ [ 'makeconf.remove_var' ] ( upper_name ) #NEWLINE# new_value = __salt__ [ 'makeconf.get_var' ] ( upper_name ) #NEWLINE# if ( new_value is not None ) : #NEWLINE# #INDENT# msg = 'Variable {0} failed to be removed from make.conf' #NEWLINE# ret [ 'comment' ] = msg . format ( name ) #NEWLINE# ret [ 'result' ] = False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# msg = 'Variable {0} was removed from make.conf' #NEWLINE# ret [ 'comment' ] = msg . format ( name ) #NEWLINE# ret [ 'result' ] = True #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return ret