#NEWLINE# def item( * args , **kwargs ) : #NEWLINE# #INDENT# "\n    Return one or more grains\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' grains.item os\n        salt '*' grains.item os osrelease oscodename\n\n    Sanitized CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' grains.item host sanitize=True\n    " #NEWLINE# ret = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for arg in args : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# ret [ args ] = __grains__ [ arg ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# if salt . utils . is_true ( kwargs . get ( 'sanitize' ) ) : #NEWLINE# #INDENT# for ( arg , func ) in six . iteritems ( _SANITIZERS ) : #NEWLINE# #INDENT# if ( arg in ret ) : #NEWLINE# #INDENT# ret [ arg ] = func ( ret [ arg ] ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return ret