fix cleanup

This commit is contained in:
Martin Geno 2016-07-12 19:04:42 +02:00
parent 5d57fd98b9
commit f127bed990

View File

@ -51,14 +51,12 @@ func (api *ApiAliases) cleaner() {
count += 1
if alias.Hostname == nodeinfo.Hostname {
count -= 1
alias.Hostname = ""
}
}
if len(alias.Owner) > 0 {
count += 1
if nodeinfo.Owner != nil && alias.Owner == nodeinfo.Owner.Contact {
count -= 1
alias.Owner = ""
}
}
if alias.Location != nil {