mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-05-27 08:09:37 +08:00
fix: baremetal mismatch with empty Guid
This commit is contained in:
@@ -242,3 +242,13 @@ func GenerateRoleName(roleName string) string {
|
||||
}
|
||||
return ret
|
||||
}
|
||||
|
||||
func FilterEmpty(input []string) []string {
|
||||
ret := make([]string, 0)
|
||||
for i := range input {
|
||||
if len(input[i]) > 0 {
|
||||
ret = append(ret, input[i])
|
||||
}
|
||||
}
|
||||
return ret
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user