def move_dbs_primary(self, db_names, dest_shard):
        log_info("Moving databases %s primary to shard '%s'" %
                 (db_names, dest_shard.id))
        mongos = self.get_any_online_mongos()

        for db_name in db_names:
            move_cmd = {
                "movePrimary": db_name,
                "to": dest_shard.id
            }
            log_info("Executing movePrimary command:\n%s\non mongos '%s'" %
                     (document_pretty_string(move_cmd), mongos.id))

            result = mongos.db_command(move_cmd, "admin")

            log_info(document_pretty_string(result) % "Move result: %s")

    ###########################################################################
dataset/ETHPy150Open mongolab/mongoctl/mongoctl/objects/sharded_cluster.py/ShardedCluster.move_dbs_primary/swapped operands of `%`