Skip to content

Commit

Permalink
Add quotes to format_toml outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
yannickhilber committed Mar 17, 2023
1 parent f7c0ffb commit 96bf04a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions bitwarden_access_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ def from_toml_dict(data: Dict[str, Any]) -> Member:
def format_toml(self) -> str:
lines = [
"[[member]]",
f"member_id = {self.id}",
f"member_name = {self.name}",
f"email = {self.email}",
f"type = {self.type.name.lower()}",
f'member_id = "{self.id}"',
f'member_name = "{self.name}"',
f'email = "{self.email}"',
f'type = "{self.type.name.lower()}"',
f"access_all = {str(self.access_all).lower()}",
]
return "\n".join(lines)
Expand Down Expand Up @@ -198,9 +198,9 @@ def from_toml_dict(data: Dict[str, Any]) -> Group:
def format_toml(self) -> str:
lines = [
"[[group]]",
f"group_id = {self.id}",
f"group_name = {self.name}",
f"access_all = {str(self.access_all).lower()}",
f'group_id = "{self.id}"',
f'group_name = "{self.name}"',
f'access_all = "{str(self.access_all).lower()}"',
]
return "\n".join(lines)

Expand Down Expand Up @@ -286,8 +286,8 @@ def from_toml_dict(data: Dict[str, Any]) -> Collection:
def format_toml(self) -> str:
result = (
"[[collection]]\n"
f"collection_id = {self.id}\n"
f"external_id = {self.external_id}\n"
f'collection_id = "{self.id}"\n'
f'external_id = "{self.external_id}"\n'
)

if self.member_access is not None:
Expand Down

0 comments on commit 96bf04a

Please sign in to comment.