mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-11-30 18:47:21 +08:00
fix: baremetal mismatch with empty Guid
This commit is contained in:
1 parent
bd914db5a6
commit
072beffe2f
6 files changed
+67
-52
No files matched your search
@@ -177,3 +177,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