Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
MiaAltieri committed Feb 19, 2024
1 parent e3c8390 commit f5b7ce6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/charms/mongodb/v0/mongodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
from typing import Dict, List, Optional, Set
from urllib.parse import quote_plus

from config import Config

from bson.json_util import dumps
from pymongo import MongoClient
from pymongo.errors import OperationFailure, PyMongoError
Expand All @@ -35,8 +37,6 @@
# path to store mongodb ketFile
logger = logging.getLogger(__name__)

MONGODB_PORT = 27017


@dataclass
class MongoDBConfiguration:
Expand Down Expand Up @@ -74,7 +74,7 @@ def uri(self):
return (
f"mongodb://{quote_plus(self.username)}:"
f"{quote_plus(self.password)}@"
f"localhost:{MONGODB_PORT}/?authSource=admin"
f"localhost:{Config.MONGODB_PORT}/?authSource=admin"
)

return (
Expand Down
Binary file removed percona-release_latest.generic_all.deb
Binary file not shown.

0 comments on commit f5b7ce6

Please sign in to comment.