From f68a438de38aa3ce60f91aa0774ca3a1675238d1 Mon Sep 17 00:00:00 2001 From: Alex Tavarez Date: Mon, 5 Jan 2026 09:10:35 -0500 Subject: [PATCH] feature: created another set of cases for non-YAML parsing, tho not yet implemented --- confctx.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/confctx.py b/confctx.py index bf4ebbe..196f1ef 100644 --- a/confctx.py +++ b/confctx.py @@ -92,6 +92,12 @@ class Config: else: raise ValueError - file_model = yams.dump(self.model | ansible_chunk) + if self.parse_method == "INI": + raise NotImplementedError + elif self.parse_method == "TOML": + raise NotImplementedError + else: + file_model = yams.dump(self.model | ansible_chunk) + self.file.write(file_model) self.file.close()