Skip to content

Commit

Permalink
default values for the env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
rpiazza committed Apr 16, 2024
1 parent 8ca924a commit d52bf2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stix2/test/v21/test_datastore_relational_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import stix2.properties

store = RelationalDBStore(
f"postgresql://{os.environ['POSTGRES_USER']}:{os.environ['POSTGRES_PASSWORD']}@0.0.0.0:5432/postgres",
f"postgresql://{os.getenv('POSTGRES_USER', 'postgres')}:{os.getenv('POSTGRES_PASSWORD', 'postgres')}@0.0.0.0:5432/postgres",
True,
None,
False,
Expand Down

0 comments on commit d52bf2d

Please sign in to comment.