From 36c2dbfe041bdcbb6d1cfb7fc9c52c7d637f0414 Mon Sep 17 00:00:00 2001 From: Michal Kovarik Date: Jan 06 2020 15:06:01 +0000 Subject: Add setVars to set more variables as a batch --- diff --git a/vars/controller.groovy b/vars/controller.groovy index e2a7a77..7fdc51b 100644 --- a/vars/controller.groovy +++ b/vars/controller.groovy @@ -36,6 +36,10 @@ def getVars() { return httpGet("/vars", true) } +def setVars(Map vars) { + return httpPost("/vars", new groovy.json.JsonBuilder(vars).toString()) +} + def getKrb5Vars(String principal) { vars = getVars() password = httpGet("/krb5/principal/${principal}")