#NEWLINE# def take_action( self , parsed_args ) : #NEWLINE# #INDENT# identity_client = self . app . client_manager . identity #NEWLINE# if ( ( not parsed_args . user ) and ( not parsed_args . domain ) and ( not parsed_args . group ) and ( not parsed_args . project ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# role = utils . find_resource ( identity_client . roles , parsed_args . role ) #NEWLINE# kwargs = _process_identity_and_resource_options ( parsed_args , self . app . client_manager . identity ) #NEWLINE# if ( not kwargs ) : #NEWLINE# #INDENT# sys . stderr . write ( 'Role not added, incorrect set of arguments provided. See openstack --help for more details\n' ) #NEWLINE# return #NEWLINE# #UNINDENT# identity_client . roles . grant ( role . id , ** kwargs )