"public_id" : self.public_id,
"private_id" : self.private_id,
+ # XXX just for testing:
+ "secret_id" : self._unique_id,
+
# Actual profile data
"profile" : p,
}
None of the data here is ever sent to the server.
"""
- id = ""
+ ids = []
# Virtual machines (for example) and some boards have a UUID
# which is globally unique.
for file in ("product_uuid", "product_serial", "chassis_serial"):
- id = read_from_file(os.path.join(SYS_CLASS_DMI, file))
- if id:
- return id
+ id = read_from_file(os.path.join(SYS_CLASS_DMI, file)) or ""
+ ids.append(id)
# As last resort, we use the UUID from pakfire.
- id = read_from_file("/opt/pakfire/db/uuid")
- if id:
- return id
+ if not ids:
+ id = read_from_file("/opt/pakfire/db/uuid") or ""
+ ids.append(id)
- return ""
+ return "#".join(ids)
@property
def language(self):