summaryrefslogtreecommitdiff
path: root/module/acme
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2021-01-12 23:06:32 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2021-01-12 23:06:32 +0100
commite2f4aefa956bb06b1ee52d95ad8275757605678d (patch)
treeed4810a3ced1b49adf09d171cefc37eb7b5c3e51 /module/acme
parent0e8048146ddf85adf28c1da09e45b98760f23210 (diff)
downloadrules-sandbox-e2f4aefa956bb06b1ee52d95ad8275757605678d.tar.gz
rules-sandbox-e2f4aefa956bb06b1ee52d95ad8275757605678d.tar.bz2
rules-sandbox-e2f4aefa956bb06b1ee52d95ad8275757605678d.tar.xz
rules-sandbox-e2f4aefa956bb06b1ee52d95ad8275757605678d.zip
Switching WG code to use object references.
Diffstat (limited to 'module/acme')
-rw-r--r--module/acme/src/main/resources/io/trygvis/acme/acme.drl6
1 files changed, 4 insertions, 2 deletions
diff --git a/module/acme/src/main/resources/io/trygvis/acme/acme.drl b/module/acme/src/main/resources/io/trygvis/acme/acme.drl
index 66623c3..76bad0a 100644
--- a/module/acme/src/main/resources/io/trygvis/acme/acme.drl
+++ b/module/acme/src/main/resources/io/trygvis/acme/acme.drl
@@ -27,6 +27,8 @@ when
$m : Machine(fqdn == null)
$s : AcmeServer(machine == $m)
then
- $s.machine.fqdn = "%s.machine.acme.com".formatted($s.machine.name);
- update($s.machine)
+ var fqdn = "%s.machine.acme.com".formatted($m.name);
+ modify ($m) {
+ fqdn = fqdn
+ }
end