summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2021-02-05 10:59:15 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2021-02-05 10:59:15 +0100
commit688a4088da952f0b3e3e49b087f9ca8e4541c8de (patch)
tree740bab5a472ca68250cd2e7fd71daae4cd71587d /modules
parentd160783762ec58cdd0be781d7662865379363156 (diff)
downloadrules-sandbox-master.tar.gz
rules-sandbox-master.tar.bz2
rules-sandbox-master.tar.xz
rules-sandbox-master.zip
Better dba rules.HEADmaster
Diffstat (limited to 'modules')
-rw-r--r--modules/ri-base/src/main/resources/io/trygvis/rules/dba/dba.drl2
1 files changed, 1 insertions, 1 deletions
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);