Use %argsof instead of explicitly listing json options.
parent
566f844992
commit
ce9a344b8b
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
metadata_api_hostname = getenv(default="icedream-bitwave", "METADATA_API_HOSTNAME")
|
metadata_api_hostname = getenv(default="icedream-bitwave", "METADATA_API_HOSTNAME")
|
||||||
|
|
||||||
def http_export_meta(~compact=false, ~json5=false, m) =
|
def http_export_meta(%argsof(json.stringify), m) =
|
||||||
j = json()
|
j = json()
|
||||||
list.iter((fun (v) -> j.add(fst(v), (snd(v):string))), m)
|
list.iter((fun (v) -> j.add(fst(v), (snd(v):string))), m)
|
||||||
json.stringify(%argsof(json.stringify), j)
|
json.stringify(%argsof(json.stringify), j)
|
||||||
|
|
Loading…
Reference in New Issue