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 unset 'ansible_virtualization_role' fact #39514

Merged
merged 1 commit into from
May 8, 2018

Conversation

pilou-
Copy link
Contributor

@pilou- pilou- commented Apr 30, 2018

SUMMARY

Error was: AttributeError("'str' object has no attribute 'startwith'",) resulting in ansible_virtualization_role being not set.

Fixes #39138

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

lib/ansible/module_utils/facts/virtual/linux.py

ANSIBLE VERSION
ansible 2.6.0 (devel ac754c736f) last updated 2018/04/27 16:24:14 (GMT +200)
ADDITIONAL INFORMATION

Present in 2.5.1 (ae0a9a5), should be backported in 2.5.2.

Bug wasn't caught by the CI because integration tests don't use real hardware (moreover bug only occurs when kvm/vboxdrv modules aren't loaded).

Error was:
AttributeError("'str' object has no attribute 'startwith'",)

Closes ansible#39138
@ansibot ansibot added bug This issue/PR relates to a bug. needs_triage Needs a first human triage before being processed. support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Apr 30, 2018
@Akasurde Akasurde removed the needs_triage Needs a first human triage before being processed. label May 1, 2018
@Akasurde
Copy link
Member

Akasurde commented May 1, 2018

@pilou- Thanks for debugging this.

@Akasurde Akasurde requested review from alikins and Akasurde May 1, 2018 04:03
Copy link
Member

@Akasurde Akasurde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@resmo
Copy link
Contributor

resmo commented May 5, 2018

shipit

@Akasurde Akasurde merged commit 2397ca1 into ansible:devel May 8, 2018
Akasurde pushed a commit to Akasurde/ansible that referenced this pull request May 9, 2018
Error was:
AttributeError("'str' object has no attribute 'startwith'",)

Closes ansible#39138

(cherry picked from commit 2397ca1)
@Akasurde
Copy link
Member

Akasurde commented May 9, 2018

@pilou- Thanks for the PR. @resmo Thanks for the review.

oolongbrothers pushed a commit to oolongbrothers/ansible that referenced this pull request May 12, 2018
Error was:
AttributeError("'str' object has no attribute 'startwith'",)

Closes ansible#39138
Akasurde added a commit that referenced this pull request May 14, 2018
Error was:
AttributeError("'str' object has no attribute 'startwith'",)

Closes #39138

(cherry picked from commit 2397ca1)
oolongbrothers pushed a commit to oolongbrothers/ansible that referenced this pull request May 14, 2018
Error was:
AttributeError("'str' object has no attribute 'startwith'",)

Closes ansible#39138
oolongbrothers pushed a commit to oolongbrothers/ansible that referenced this pull request May 14, 2018
Error was:
AttributeError("'str' object has no attribute 'startwith'",)

Closes ansible#39138
tonal pushed a commit to tonal/ansible that referenced this pull request May 15, 2018
Error was:
AttributeError("'str' object has no attribute 'startwith'",)

Closes ansible#39138
oolongbrothers pushed a commit to oolongbrothers/ansible that referenced this pull request May 15, 2018
Error was:
AttributeError("'str' object has no attribute 'startwith'",)

Closes ansible#39138
oolongbrothers pushed a commit to oolongbrothers/ansible that referenced this pull request May 15, 2018
Error was:
AttributeError("'str' object has no attribute 'startwith'",)

Closes ansible#39138
ilicmilan pushed a commit to ilicmilan/ansible that referenced this pull request Nov 7, 2018
Error was:
AttributeError("'str' object has no attribute 'startwith'",)

Closes ansible#39138
@ansible ansible locked and limited conversation to collaborators May 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue/PR relates to a bug. support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fact ansible_virtualization_role not set in Ansible 2.5.1 on real hardware
4 participants