diff --git a/.changelog/4696.yml b/.changelog/4696.yml new file mode 100644 index 00000000000..01e7c70c4a5 --- /dev/null +++ b/.changelog/4696.yml @@ -0,0 +1,4 @@ +changes: +- description: YmlSplitter fix. + type: fix +pr_number: 4695 diff --git a/demisto_sdk/commands/split/ymlsplitter.py b/demisto_sdk/commands/split/ymlsplitter.py index 74aa00640d5..f33d4fe5832 100644 --- a/demisto_sdk/commands/split/ymlsplitter.py +++ b/demisto_sdk/commands/split/ymlsplitter.py @@ -129,7 +129,7 @@ def extract_to_package_format( yaml_out = f"{output_path}/{base_name}.yml" logger.debug(f"Creating yml file: {yaml_out} ...") if self.yml_data: - yaml_obj = self.yml_data + yaml_obj = self.yml_data.copy() else: yaml_obj = get_file(self.input, raise_on_error=True)