From db95b6381fc380c327054c487918dcc951d0c2b0 Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Mon, 1 Feb 2021 18:28:35 +0000 Subject: [PATCH] examples: lang: Reinstate mcl as unification bug is fixed Struct field names now correctly map based on their `lang` tags in Go structs, so this example now works as originally intended. Signed-off-by: Joe Groocock --- examples/lang/virt2.mcl | 42 ++++++++++++++++++++--------------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/examples/lang/virt2.mcl b/examples/lang/virt2.mcl index ae241ef5..756c8f42 100644 --- a/examples/lang/virt2.mcl +++ b/examples/lang/virt2.mcl @@ -29,26 +29,24 @@ virt "mgmt4" { state => "running", transient => false, boot => ["hd", ], - # can't add this part until we fix the unification bug - #disk => [ - # struct{ - # source => "~/.local/share/libvirt/images/fedora-23-scratch.qcow2", - # type => "qcow2", - # }, - #], - # add the rest for unification bug - #osinit => "", - #cdrom => [ - #], - #network => [ - #], - #filesystem => [ - #], - #auth => struct{ - # username => "", - # password => "", - #}, - #hotcpus => true, # this is the default - #restartondiverge => "", - #restartonrefresh => false, + disk => [ + struct{ + source => "~/.local/share/libvirt/images/fedora-23-scratch.qcow2", + type => "qcow2", + }, + ], + osinit => "", + cdrom => [ + ], + network => [ + ], + filesystem => [ + ], + auth => struct{ + username => "", + password => "", + }, + hotcpus => true, # this is the default + restartondiverge => "", + restartonrefresh => false, }