Skip to content

Commit

Permalink
Fixed CodeBuild artifacts config when path is None
Browse files Browse the repository at this point in the history
  • Loading branch information
gitwater committed Jan 31, 2022
1 parent 9cbe79c commit 4624c83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/paco/cftemplates/codebuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,11 +486,12 @@ def create_codebuild_cfn(
project_dict['Artifacts'] = {
'Type': action_config.artifacts.type,
'Location': troposphere.Ref(self.artifacts_bucket_name_param),
'Path': action_config.artifacts.path,
'NamespaceType': action_config.artifacts.namespace_type,
'Packaging': action_config.artifacts.packaging,
'Name': action_config.artifacts.name
}
if action_config.artifacts.path != None:
project_dict['Artifacts']['Path'] = action_config.artifacts.path
if action_config.source.github != None:
project_dict['Source']['Type'] = 'GITHUB'
project_dict['Source']['Location'] = action_config.source.github.location
Expand Down

0 comments on commit 4624c83

Please sign in to comment.