#NEWLINE# def info( name ) : #NEWLINE# #INDENT# "\n    Return information for the specified user\n    This is just returns dummy data so that salt states can work.\n\n    :param str name: The name of the user account to show.\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' shadow.info root\n    " #NEWLINE# info = __salt__ [ 'user.info' ] ( name = name ) #NEWLINE# ret = { #NEWLINE# #INDENT# 'name' : name , #NEWLINE# 'passwd' : '' , #NEWLINE# 'lstchg' : '' , #NEWLINE# 'min' : '' , #NEWLINE# 'max' : '' , #NEWLINE# 'warn' : '' , #NEWLINE# 'inact' : '' , #NEWLINE# 'expire' : '' , #NEWLINE# #UNINDENT# } #NEWLINE# if info : #NEWLINE# #INDENT# ret = { #NEWLINE# #INDENT# 'name' : info [ 'name' ] , #NEWLINE# 'passwd' : 'Unavailable' , #NEWLINE# 'lstchg' : ret [ 'password_changed' ] , #NEWLINE# 'min' : '' , #NEWLINE# 'max' : '' , #NEWLINE# 'warn' : '' , #NEWLINE# 'inact' : '' , #NEWLINE# 'expire' : info [ 'expiration_date' ] , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# return ret