File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 14
14
when :
15
15
- netbox_config.SECRET_KEY is not defined
16
16
17
+ - name : Pin Django REST Framework dependency to under 3.7.0 for NetBox 2.1.5 and below
18
+ replace :
19
+ path : " {{ netbox_current_path }}/requirements.txt"
20
+ regexp : ' ^(djangorestframework>=\d+\.\d+(\.\d+)?)$'
21
+ replace : ' \1,<3.7.0'
22
+ when :
23
+ - (netbox_stable and netbox_stable_version | version_compare('2.1.5', '<=')) or (netbox_git and __netbox_git_contains_issue_1563_fix.rc == 1)
24
+
17
25
- name : Create NetBox virtualenv and install needed Python dependencies
18
26
pip :
19
27
requirements : " {{ netbox_current_path }}/requirements.txt"
Original file line number Diff line number Diff line change 25
25
when :
26
26
- __netbox_git_contains_media_root_change.rc == 0 and "MEDIA_ROOT" not in netbox_config
27
27
28
+ - name : Check existence of commit 97188ad, fixing issue netbox#1563
29
+ shell : ' git log --format=%H "{{ netbox_git_version }}" | grep ^97188ad85ba77d361ae38d8b5e01ae9109e5e9bd'
30
+ args :
31
+ chdir : " {{ netbox_git_repo_path }}"
32
+ register : __netbox_git_contains_issue_1563_fix
33
+ changed_when : False
34
+ failed_when : " __netbox_git_contains_issue_1563_fix.rc not in [0, 1]"
35
+
28
36
- name : Archive and extract snapshot of git repository
29
37
shell : ' git archive "{{ netbox_git_version }}" | tar -x -C "{{ netbox_git_deploy_path }}"'
30
38
args :
You can’t perform that action at this time.
0 commit comments