feature: created another set of cases for non-YAML parsing, tho not yet implemented
This commit is contained in:
@@ -92,6 +92,12 @@ class Config:
|
|||||||
else:
|
else:
|
||||||
raise ValueError
|
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.write(file_model)
|
||||||
self.file.close()
|
self.file.close()
|
||||||
|
|||||||
Reference in New Issue
Block a user