def trim_var(var, value):
 makeconf = _get_makeconf()
 old_value = get_var(var)
 if (old_value is not None):
  __salt__['file.sed'](makeconf, value, '', limit=var)
 new_value = get_var(var)
 return {var: {'old': old_value, 'new': new_value}}

def trim_var ( var , value ) : makeconf = _get_makeconf ( ) old_value = get_var ( var ) if ( old_value is not None ) : __salt__ [ 'file.sed' ] ( makeconf , value , '' , limit = var ) new_value = get_var ( var ) return { var : { 'old' : old_value , 'new' : new_value } }
remove a value from a variable in the make .