implement api cleanup
This commit is contained in:
parent
b7290c54c9
commit
668de8188d
@ -35,7 +35,7 @@ func (api *ApiAliases) cleaner(){
|
|||||||
//counter for the diffrent attribute
|
//counter for the diffrent attribute
|
||||||
count := 1
|
count := 1
|
||||||
if alias.Hostname == nodeinfo.Hostname {
|
if alias.Hostname == nodeinfo.Hostname {
|
||||||
count -= 0
|
count -= 1
|
||||||
}
|
}
|
||||||
//delete element
|
//delete element
|
||||||
if count <= 0 {
|
if count <= 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user