Skip to content

Commit

Permalink
Add OPENSHIFT_VIRTUALIZATION_EXCLUDE_EMPTY_GROUPS
Browse files Browse the repository at this point in the history
fix
```
tools_awx_1       | 2024-06-14 15:39:23,424 ERROR    [63b8bfcc] awx.main.tasks.jobs inventory_update 8 (running) Post run hook errored.
tools_awx_1       | Traceback (most recent call last):
tools_awx_1       |   File "/awx_devel/awx/main/tasks/jobs.py", line 637, in run
tools_awx_1       |     self.post_run_hook(self.instance, status)
tools_awx_1       |   File "/awx_devel/awx/main/tasks/jobs.py", line 1669, in post_run_hook
tools_awx_1       |     if getattr(settings, '%s_EXCLUDE_EMPTY_GROUPS' % src.upper()):
tools_awx_1       |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tools_awx_1       |   File "/awx_devel/awx/conf/settings.py", line 540, in __getattr_without_cache__
tools_awx_1       |     return getattr(self._wrapped, name)
tools_awx_1       |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tools_awx_1       |   File "/awx_devel/awx/conf/settings.py", line 441, in __getattr__
tools_awx_1       |     return self._get_default(name)
tools_awx_1       |            ^^^^^^^^^^^^^^^^^^^^^^^
tools_awx_1       |   File "/awx_devel/awx/conf/settings.py", line 415, in _get_default
tools_awx_1       |     return getattr(self.default_settings, name)
tools_awx_1       |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tools_awx_1       | AttributeError: 'Settings' object has no attribute 'OPENSHIFT_VIRTUALIZATION_EXCLUDE_EMPTY_GROUPS'
```
  • Loading branch information
TheRealHaoLiu committed Jun 14, 2024
1 parent bbb617c commit 2298920
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions awx/settings/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,11 @@
TERRAFORM_INSTANCE_ID_VAR = 'id'
TERRAFORM_EXCLUDE_EMPTY_GROUPS = True

# ------------------------
# OpenShift Virtualization
# ------------------------
OPENSHIFT_VIRTUALIZATION_EXCLUDE_EMPTY_GROUPS = True

# ---------------------
# ----- Custom -----
# ---------------------
Expand Down

0 comments on commit 2298920

Please sign in to comment.