@@ -142,7 +142,12 @@ def wait(self):
142142 def mongodump_cmd (self ):
143143 mongodump_uri = self .uri .get ()
144144 mongodump_cmd = [self .binary ]
145- mongodump_flags = ["--host" , mongodump_uri .host , "--port" , str (mongodump_uri .port ), "--oplog" , "--out" , "%s/dump" % self .backup_dir ]
145+ mongodump_flags = [
146+ "--host=%s" % mongodump_uri .host ,
147+ "--port=%s" % str (mongodump_uri .port ),
148+ "--oplog" ,
149+ "--out=%s/dump" % self .backup_dir
150+ ]
146151
147152 # --numParallelCollections
148153 if self .threads > 0 :
@@ -185,15 +190,15 @@ def mongodump_cmd(self):
185190 if self .is_version_gte ("2.6.0" ):
186191 mongodump_flags .append ("--ssl" )
187192 if self .ssl_ca_file :
188- mongodump_flags .extend ([ "--sslCAFile" , self .ssl_ca_file ] )
193+ mongodump_flags .append ( "--sslCAFile=%s" % self .ssl_ca_file )
189194 if self .ssl_crl_file :
190- mongodump_flags .extend ([ "--sslCRLFile" , self .ssl_crl_file ] )
195+ mongodump_flags .append ( "--sslCRLFile=%s" % self .ssl_crl_file )
191196 if self .client_cert_file :
192- mongodump_flags .extend ([ "--sslPEMKeyFile" , self .ssl_cert_file ] )
197+ mongodump_flags .append ( "--sslPEMKeyFile=%s" % self .ssl_cert_file )
193198 if self .do_ssl_insecure ():
194199 mongodump_flags .extend (["--sslAllowInvalidCertificates" , "--sslAllowInvalidHostnames" ])
195200 else :
196- logging .fatal ("Mongodump must be >= 2.6.0 to enable SSL!" )
201+ logging .fatal ("Mongodump must be >= 2.6.0 to enable SSL encryption !" )
197202 sys .exit (1 )
198203
199204 mongodump_cmd .extend (mongodump_flags )
0 commit comments