Skip to content

Commit

Permalink
Add missing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
jtherrmann authored Aug 28, 2024
1 parent a446d03 commit ddb2797
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions apps/scale-cluster/scale-cluster-cf.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ Resources:
- Effect: Allow
Action: batch:UpdateComputeEnvironment
Resource:
- !Ref ComputeEnvironmentArn
{% for job_type, job_spec in job_types.items() if 'Default' != job_spec['compute_environment']['name'] %}
- !Ref {{ job_spec['compute_environment']['name'] }}ComputeEnvironmentArn
{% endfor %}
- !Ref ComputeEnvironmentArn
{% for job_type, job_spec in job_types.items() if 'Default' != job_spec['compute_environment']['name'] %}
- !Ref {{ job_spec['compute_environment']['name'] }}ComputeEnvironmentArn
{% endfor %}

Lambda:
Type: AWS::Lambda::Function
Expand Down Expand Up @@ -147,7 +147,7 @@ Resources:
{{ name }}LogGroup:
Type: AWS::Logs::LogGroup
Properties:
LogGroupName: !Sub {{ "/aws/lambda/${"+ name +"Lambda}" }}
LogGroupName: !Sub {{ "/aws/lambda/${" + name + "Lambda}" }}
RetentionInDays: 90

{{ name }}Lambda:
Expand Down
2 changes: 1 addition & 1 deletion apps/step-function.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
"JobName.$": "$.job_id",
{% set name = job_spec['compute_environment']['name'] %}
{% set job_queue = name + 'JobQueueArn' if 'Default' != name else 'JobQueueArn' %}
"JobQueue": "{{ '${'+ job_queue +'}' }}",
"JobQueue": "{{ '${' + job_queue + '}' }}",
"ShareIdentifier": "default",
"SchedulingPriorityOverride.$": "$.priority",
"Parameters.$": "$.job_parameters",
Expand Down
2 changes: 1 addition & 1 deletion apps/workflow-cf.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ Resources:
Action: batch:SubmitJob
Resource:
- !Ref JobQueueArn
{% for job_type, job_spec in job_types.items() if 'Default' != job_spec['compute_environment']['name']%}
{% for job_type, job_spec in job_types.items() if 'Default' != job_spec['compute_environment']['name'] %}
- !Ref {{ job_spec['compute_environment']['name'] }}JobQueueArn
{% endfor %}
{% for job_type, job_spec in job_types.items() %}
Expand Down

0 comments on commit ddb2797

Please sign in to comment.