egberts/bind9_parser

TSIG keys not handled correctly

Closed this issue · 1 comments

bind9_parser seems to not parse multiple TSIG keys correctly. The configuration

key "ansible" {
        algorithm hmac-sha256;
        secret "redacted_key_1";
};

key "externaldns" {
        algorithm hmac-sha256;
        secret "redacted_key_2";
};

results in

  "key": [
    {
      "algorithm": "hmac-sha256",
      "key_id": "\"externaldns\"",
      "secret": "redacted_key_2"
    }
  ],

for result.asDict()

So, the first key statement is missing.

/assign