Skip to content

Commit

Permalink
CH-59 Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
condar-metacell committed Sep 16, 2024
1 parent c019423 commit 3ffc9cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ class Migration(migrations.Migration):
("django_baseapp", "0001_initial"),
]

operations = []
operations = []
4 changes: 2 additions & 2 deletions libraries/cloudharness-common/cloudharness/applications.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ def get_db_connection_string(self, **kwargs) -> str:
elif self.db_type == 'postgres':
database_name = kwargs.get('database_name', self.harness.database.postgres['initialdb'])
return f"postgres://{self.db_name}:{self.harness.database.postgres.ports[0]['port']}/" \
f"{database_name}?user={self.harness.database.user}&password={self.harness.database['pass']}"
f"{database_name}?user={self.harness.database.user}&password={self.harness.database['pass']}"
elif self.db_type == 'neo4j':
return f"{self.harness.database.neo4j.get('ports')[1]['name']}://{self.db_name}:" \
f"{self.harness.database.neo4j.get('ports')[1]['port']}/"
f"{self.harness.database.neo4j.get('ports')[1]['port']}/"
else:
raise NotImplementedError(
f'Database connection string discovery not yet supported for database type {self.db_type}')
Expand Down

0 comments on commit 3ffc9cf

Please sign in to comment.