Skip to content
Snippets Groups Projects
Commit beb15dc0 authored by Antoine Millet's avatar Antoine Millet
Browse files

Implemented uuid tag on hosts

parent 7fa0cad8
No related branches found
No related tags found
No related merge requests found
......@@ -125,6 +125,11 @@ def chaslot():
return version.split('.')[3]
def uuid():
"""System UUID."""
return open('/sys/class/dmi/id/product_uuid').read().strip().lower() or None
def hmodel():
"""Host hardware model."""
return open('/sys/class/dmi/id/product_name').read().strip() or None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment