File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -780,7 +780,7 @@ def _create_or_update_user(
780780 opts ["pwd" ] = auth ._password_digest (name , password )
781781 opts ["digestPassword" ] = False
782782
783- opts ["writeConcern" ] = self ._get_wc_override ()
783+ opts ["writeConcern" ] = self ._get_wc_override () or self . write_concern
784784 opts .update (kwargs )
785785
786786 if create :
@@ -890,9 +890,10 @@ def remove_user(self, name):
890890 """
891891
892892 try :
893+ write_concern = self ._get_wc_override () or self .write_concern
893894 self .command ("dropUser" , name ,
894895 read_preference = ReadPreference .PRIMARY ,
895- writeConcern = self . _get_wc_override () )
896+ writeConcern = write_concern )
896897 except OperationFailure , exc :
897898 # See comment in add_user try / except above.
898899 if exc .code in common .COMMAND_NOT_FOUND_CODES :
You can’t perform that action at this time.
0 commit comments