nixos modules for convenient deployment of cloud resources

fix(hetzner): use mut for variables that are mutated

ptr.pet 7ab965e6 a223b4bd

verified
Changed files
+2 -2
firewall
provider
hetzner
+2 -2
firewall/provider/hetzner/app.nu
···
return $"https://api.hetzner.cloud/v1($path)"
}
def post [path: string] {
-
let resp = $in | http post -e --full -H authHeader --content-type application/json (makeApiUrl path)
+
mut resp = $in | http post -e --full -H authHeader --content-type application/json (makeApiUrl path)
$resp.body = $resp.body | from json
$resp
}
def get [path: string] {
-
let resp = http get -e --full -H authHeader (makeApiUrl path)
+
mut resp = http get -e --full -H authHeader (makeApiUrl path)
$resp.body = $resp.body | from json
$resp
}