From dfd2aa27fe1431adedbdf80e917264ed742caf1a Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 5 May 2020 19:18:58 +0200 Subject: [PATCH] dns schema: move fields one level deeper Signed-off-by: Thomas Lamprecht --- src/PVE/ACME/DNSChallenge.pm | 66 ++++++++++++++++++++---------------- 1 file changed, 36 insertions(+), 30 deletions(-) diff --git a/src/PVE/ACME/DNSChallenge.pm b/src/PVE/ACME/DNSChallenge.pm index 2bef369..3bf8300 100644 --- a/src/PVE/ACME/DNSChallenge.pm +++ b/src/PVE/ACME/DNSChallenge.pm @@ -100,39 +100,45 @@ my $plugins = { 'openprovider' => {}, 'opnsense' => {}, 'ovh' => { - 'OVH_END_POINT' => { - description => "The OVH endpoint", - default => "ovh-eu", - optional => 1, - type => 'string', - }, - 'OVH_AK' => { - description => "The application key.", - type => 'string', - }, - 'OVH_AS' => { - description => "The application secret.", - type => 'string', - }, - 'OVH_CK' => { - description => "The consumer key.", - optional => 1, - type => 'string', + name => 'OVH', + fields => { + 'OVH_END_POINT' => { + description => "The OVH endpoint", + default => "ovh-eu", + optional => 1, + type => 'string', + }, + 'OVH_AK' => { + description => "The application key.", + type => 'string', + }, + 'OVH_AS' => { + description => "The application secret.", + type => 'string', + }, + 'OVH_CK' => { + description => "The consumer key.", + optional => 1, + type => 'string', + }, }, }, 'pdns' => { - 'PDNS_Url' => { - description => "The PowerDNS API endpoint.", - type => 'string', - }, - 'PDNS_ServerId'=> { - type => 'string', - }, - 'PDNS_Token'=> { - type => 'string', - }, - 'PDNS_Ttl'=> { - type => 'integer', + name => 'PowerDNS server', + fields => { + 'PDNS_Url' => { + description => "The PowerDNS API endpoint.", + type => 'string', + }, + 'PDNS_ServerId'=> { + type => 'string', + }, + 'PDNS_Token'=> { + type => 'string', + }, + 'PDNS_Ttl'=> { + type => 'integer', + }, }, }, 'pleskxml' => {}, -- 2.39.2