Skip to content

Commit

Permalink
Fixing CICD deployment
Browse files Browse the repository at this point in the history
- adding log messages when a new directory is created.
- removing unused audience
- fixing environment for prod
  • Loading branch information
Bento007 committed Oct 1, 2019
1 parent 3c567b8 commit de4b0d9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion environment
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ else
fi

if [[ "${FUS_DEPLOYMENT_STAGE}" == "prod" ]]; then
FUS_ZONE_NAME=data.humancellatlas.org
export FUS_ZONE_NAME=data.humancellatlas.org
else
export FUS_ZONE_NAME=${FUS_DEPLOYMENT_STAGE}.data.humancellatlas.org
fi
Expand Down
4 changes: 4 additions & 0 deletions fusillade/clouddirectory.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ def create_directory(name: str, schema: str, admins: List[str]) -> 'CloudDirecto
for admin in admins:
User.provision_user(admin, roles=['fusillade_admin'])
User.provision_user('public')
logger.info({"message": "Created New Directory",
"schema_arn": schema,
"directory_name": name,
"admins": admins})
return directory


Expand Down
3 changes: 1 addition & 2 deletions fusillade/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ class Config:
_admin_emails: list = None
_oauth2_config = None
app = None
audience = ["https://data.humancellatlas.org/" if os.environ["FUS_DEPLOYMENT_STAGE"] == 'prod'
else "https://dev.data.humancellatlas.org/",
audience = ["https://dev.data.humancellatlas.org/",
"https://auth.data.humancellatlas.org/"]
_openid_provider = None
version = "unversioned"
Expand Down

0 comments on commit de4b0d9

Please sign in to comment.