Skip to content

Commit

Permalink
updates secrets class
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielBarberini committed Sep 16, 2023
1 parent e3a5ee2 commit 83b9176
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/secrets.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
from dotenv import dotenv_values
from pydantic import BaseModel
import os

class Secrets(BaseModel):
"""
Expand All @@ -15,7 +15,7 @@ def get_os_secret(key):
def get_secret(self, key):
dotenv_secret = self.secrets.get(key)
if not dotenv_secret:
return get_os_secret(key)
return self.get_os_secret(key)
return dotenv_secret

# global instance
Expand Down

0 comments on commit 83b9176

Please sign in to comment.