nixos modules for convenient deployment of cloud resources

fix(hetzner): dont parse body as json since nushell handles it

ptr.pet 696af4a2 3a9872f4

verified
Changed files
+2 -6
firewall
provider
hetzner
+2 -6
firewall/provider/hetzner/app.nu
···
return $"https://api.hetzner.cloud/v1($path)"
}
def post [path: string] {
-
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] {
-
mut resp = http get -e --full -H $authHeader (makeApiUrl path)
-
$resp.body = $resp.body | from json
-
$resp
}
# first fetch firewall to see if it even exists
···
return $"https://api.hetzner.cloud/v1($path)"
}
def post [path: string] {
+
$in | http post -e --full -H $authHeader --content-type application/json (makeApiUrl path)
}
def get [path: string] {
+
http get -e --full -H $authHeader (makeApiUrl path)
}
# first fetch firewall to see if it even exists