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()