mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-29 17:58:36 +08:00
feature: support fetch baremetal uuid and use uuid to identify baremetal
This commit is contained in:
@@ -347,3 +347,15 @@ func ParseIPMIUser(lines []string) []compute.IPMIUser {
|
||||
}
|
||||
return ret
|
||||
}
|
||||
|
||||
const (
|
||||
UUID_EMPTY = "00000000-0000-0000-0000-000000000000"
|
||||
)
|
||||
|
||||
func NormalizeUuid(uuid string) string {
|
||||
uuid = strings.ToLower(uuid)
|
||||
if uuid == UUID_EMPTY {
|
||||
uuid = ""
|
||||
}
|
||||
return uuid
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user