Skip to content

Commit

Permalink
kubescape.py: fix SoundscapeKube to remember database status
Browse files Browse the repository at this point in the history
  • Loading branch information
RDMurray committed Aug 5, 2023
1 parent c29fbdb commit fdc45e0
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions svcs/data/kubescape.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,21 @@

class SoundscapeKube:
def __init__(self, arg1, arg2):
self.databases = {
'osm': {
'name': 'osm',
'dsn2': make_dsn(
user=os.environ['POSTGIS_USER'],
password=os.environ['POSTGIS_PASSWORD'],
host=os.environ['POSTGIS_HOST'],
port=os.environ['POSTGIS_PORT'],
dbname=os.environ['POSTGIS_DBNAME'],
),
'dbstatus': None,
}
pass

databases = {
'osm': {
'name': 'osm',
'dsn2': make_dsn(
user=os.environ['POSTGIS_USER'],
password=os.environ['POSTGIS_PASSWORD'],
host=os.environ['POSTGIS_HOST'],
port=os.environ['POSTGIS_PORT'],
dbname=os.environ['POSTGIS_DBNAME'],
),
'dbstatus': None,
}
}

def connect(self):
pass
Expand Down

0 comments on commit fdc45e0

Please sign in to comment.