-
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
facts: fix device uuid's on el6 #36128
Conversation
CI failure in unit tests: https://app.shippable.com/github/ansible/ansible/runs/54600/3/tests |
if rc != 0: | ||
return uuid | ||
|
||
m = re.search('ID_FS_UUID=(.*)\n', out) |
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.
I would like to see an example output of 'udevadm info --query property --name $DEVICE' and a test case that uses it to verify the regex here. It may be easier to test if the parsing bit is split into a separate method.
(granted, that is a very simple regex at the moment...)
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.
👍 unit test added
CI failure in python 3 unit tests:
|
@alikins tests pass, is this good to merge? |
LGTM |
SUMMARY
Fixes #36077
ISSUE TYPE
COMPONENT NAME
facts
ANSIBLE VERSION
ADDITIONAL INFORMATION