-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error was: AttributeError("'str' object has no attribute 'startwith'",) Closes ansible#39138
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
removed
the
needs_triage
Needs a first human triage before being processed.
label
May 1, 2018
@pilou- Thanks for debugging this. |
Akasurde
approved these changes
May 1, 2018
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
shipit |
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)
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
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
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
Error was:
AttributeError("'str' object has no attribute 'startwith'",)
resulting inansible_virtualization_role
being not set.Fixes #39138
ISSUE TYPE
COMPONENT NAME
lib/ansible/module_utils/facts/virtual/linux.py
ANSIBLE VERSION
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 whenkvm
/vboxdrv
modules aren't loaded).