Skip to content

Commit

Permalink
installer: don't crash when bootstrap fails (#613)
Browse files Browse the repository at this point in the history
When the bootstrap operation fails, we don't run the task that registers
the `datadog_installer_owns_agent` facts, which causes the role to crash
when accessing it
  • Loading branch information
chouquette authored Sep 20, 2024
1 parent 66903ca commit ac731ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/installer-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
- name: Disable agent install if owned by installer
set_fact:
agent_datadog_skip_install: true
when: datadog_installer_owns_agent.rc == 0
when: not datadog_installer_bootstrap_result.failed and datadog_installer_owns_agent.rc == 0

- name: Query APM packages owned by installer
command: datadog-installer is-installed "datadog-apm-library-{{ item }}"
Expand Down

0 comments on commit ac731ed

Please sign in to comment.