diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2021-01-12 23:06:32 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2021-01-12 23:06:32 +0100 |
commit | e2f4aefa956bb06b1ee52d95ad8275757605678d (patch) | |
tree | ed4810a3ced1b49adf09d171cefc37eb7b5c3e51 /module/acme | |
parent | 0e8048146ddf85adf28c1da09e45b98760f23210 (diff) | |
download | rules-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.drl | 6 |
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 |