Skip to content

Commit

Permalink
Remember to load SA creds
Browse files Browse the repository at this point in the history
  • Loading branch information
Milkshak3s committed Sep 10, 2022
1 parent 2b35e6d commit e3493de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
}
IN_CLUSTER = True
DEPLOYMENT_NAME = "discord_opsbot"
GCP_CREDS_PATH = "/etc/gcp-sa/service-account.json"


def load_admins():
Expand Down Expand Up @@ -128,7 +129,7 @@ async def create_job(self, message):

async def list_backups(self, message):
"""lists all the blobs in the backups bucket."""
storage_client = storage.Client()
storage_client = storage.Client.from_service_account_json(json_credentials_path=GCP_CREDS_PATH)
blobs = storage_client.list_blobs(GCP_GS_BUCKET)

send_str = "```"
Expand Down

0 comments on commit e3493de

Please sign in to comment.