#NEWLINE# def user_absent( name , profile = None , **connection_args ) : #NEWLINE# #INDENT# '\n    Ensure that the keystone user is absent.\n\n    name\n        The name of the user that should not exist\n    ' #NEWLINE# ret = { #NEWLINE# #INDENT# 'name' : name , #NEWLINE# 'changes' : { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , #NEWLINE# 'result' : True , #NEWLINE# 'comment' : 'User "{0}" is already absent' . format ( name ) , #NEWLINE# #UNINDENT# } #NEWLINE# user = __salt__ [ 'keystone.user_get' ] ( name = name , profile = profile , ** connection_args ) #NEWLINE# if ( 'Error' not in user ) : #NEWLINE# #INDENT# if __opts__ [ 'test' ] : #NEWLINE# #INDENT# ret [ 'result' ] = None #NEWLINE# ret [ 'comment' ] = 'User "{0}" will be deleted' . format ( name ) #NEWLINE# ret [ 'changes' ] [ 'User' ] = 'Will be deleted' #NEWLINE# return ret #NEWLINE# #UNINDENT# __salt__ [ 'keystone.user_delete' ] ( name = name , profile = profile , ** connection_args ) #NEWLINE# ret [ 'comment' ] = 'User "{0}" has been deleted' . format ( ret ) #NEWLINE# ret [ 'changes' ] [ 'User' ] = 'Deleted' #NEWLINE# #UNINDENT# return ret