fix extra ip tag will not be deleted when host no longer has extra ips
@@ -2786,6 +2786,8 @@ public class KVMHost extends HostBase implements Host {
creator.setTagByTokens(map(e(HostSystemTags.EXTRA_IPS_TOKEN, StringUtils.join(ips, ","))));
creator.recreate = true;
creator.create();
+ } else {
+ HostSystemTags.EXTRA_IPS.delete(self.getUuid());
}
}
