From 688a4088da952f0b3e3e49b087f9ca8e4541c8de Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 5 Feb 2021 10:59:15 +0100 Subject: Better dba rules. --- modules/ri-base/src/main/resources/io/trygvis/rules/dba/dba.drl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ri-base/src/main/resources/io/trygvis/rules/dba/dba.drl b/modules/ri-base/src/main/resources/io/trygvis/rules/dba/dba.drl index f1a1da2..e487222 100644 --- a/modules/ri-base/src/main/resources/io/trygvis/rules/dba/dba.drl +++ b/modules/ri-base/src/main/resources/io/trygvis/rules/dba/dba.drl @@ -20,7 +20,7 @@ end rule "Assign containers to machine" when - $machineRole : DbaMachineRole(machine) + $machineRole : DbaMachineRole(machine != null) $container : Container(machine == null, $machineRole.roles contains machineRole) then System.out.println("Assigning container " + $container.cluster.name + "/" + $container.name + " to machine: " + $machineRole.machine.name); -- cgit v1.2.3