Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error when facts value don't exist #283

Merged
merged 1 commit into from
Jun 23, 2020

Conversation

kanga333
Copy link
Contributor

What does this PR do?

Fix #282
Resolves installation errors that occur in the Redhat OS family of the arm architecture.

Additional information

ansible_userspace_architecture is undefined in arm because it is a variable that is only set on Intel family CPUs.
https://github.com/ansible/ansible/blob/devel/lib/ansible/module_utils/facts/system/platform.py#L61-L72

I used vars and changed it to use ansible_architecture if ansible_userspace_architecture is undefined.
https://docs.ansible.com/ansible/latest/plugins/lookup/vars.html

Describe your test plan

Install this version of the role using

ansible-galaxy install git+https://github.com/kanga333/ansible-datadog.git,fix-redhat-arm

Running on an arm architecture machine, such as an AWS m6g instance.

I have run the test plan and have confirmed that it ran successfully.

@kanga333 kanga333 requested a review from a team as a code owner June 19, 2020 15:18
@rromanchuk
Copy link

Tested, can confirm fix

@mx-psi
Copy link
Member

mx-psi commented Jun 23, 2020

Hi @kanga333, thanks for your contribution! LGTM, so I am going to merge it 🚀

@mx-psi mx-psi merged commit 08abc78 into DataDog:master Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error while running into the RedHat OS family on arm architecture
3 participants