Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Ensure we clean static dir before collectstatic is run
Browse files Browse the repository at this point in the history
fixes: #8872
  • Loading branch information
Spredzy authored and mikedep333 committed Jun 7, 2021
1 parent a332072 commit 1fd8729
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES/8872.bugfix
@@ -0,0 +1,2 @@
Ensure we clean the static folder before running collectstatic. This prevents
some upgrade issues.
2 changes: 1 addition & 1 deletion roles/pulp_common/handlers/main.yml
Expand Up @@ -32,7 +32,7 @@
- ansible_facts.selinux.status == "enabled"

- name: Collect static content
command: "{{ pulp_django_admin_path }} collectstatic --noinput --link {{ pulp_collectstatic_ignore_list }}"
command: "{{ pulp_django_admin_path }} collectstatic --clear --noinput --link {{ pulp_collectstatic_ignore_list }}"
register: staticresult
changed_when: "staticresult.stdout is not search('\n0 static files')"
become: true
Expand Down

0 comments on commit 1fd8729

Please sign in to comment.