Skip to content

Commit dbc6d9f

Browse files
authored
Fix order of tests for managing composer
When symfony_project_manage_composer is False, there is an error 'dict object' has no attribute 'stat'. Because when it is false you don't check if it exists, so composer_file has no .stat. But it is tested first so fails with an error. Swapping the order of the tests fixes the issue.
1 parent 84a5944 commit dbc6d9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/20-composer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
- name: Update composer if already exists.
1212
shell: "{{symfony_project_composer_path}} selfupdate"
13-
when: composer_file.stat.exists == True and symfony_project_manage_composer == True
13+
when: symfony_project_manage_composer == True and composer_file.stat.exists == True
1414

1515
- name: Add github token
1616
shell: "{{symfony_project_composer_path}} config -g github-oauth.github.com {{symfony_project_github_token}}"

0 commit comments

Comments
 (0)