diff options
Diffstat (limited to 'myrpki/yamltest.py')
-rw-r--r-- | myrpki/yamltest.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/myrpki/yamltest.py b/myrpki/yamltest.py index cd951af1..9e349a0f 100644 --- a/myrpki/yamltest.py +++ b/myrpki/yamltest.py @@ -442,7 +442,10 @@ class allocation(object): m = section_regexp.match(line) if m: section = m.group(1) - if section is None or (self.is_hosted() and section in ("myirbe", "rpkid", "irdbd", "pubd", "rootd", "rootd_x509_extensions")): + if (section is None or + (self.is_hosted() and section in ("myirbe", "rpkid", "irdbd")) or + (not self.runs_pubd() and section == "pubd") or + (not self.is_root() and section in ("rootd", "rootd_x509_extensions"))): continue m = variable_regexp.match(line) if m is None else None variable = m.group(1) if m else None |