diff --git a/packit/git_utils.py b/packit/git_utils.py index 2d6a6cdea..f89ee5d8d 100644 --- a/packit/git_utils.py +++ b/packit/git_utils.py @@ -39,7 +39,7 @@ def get_message_from_metadata(metadata: dict, header: Optional[str] = None) -> s f"We can save only dictionaries to metadata. Not {metadata}" ) - content = yaml.dump(metadata, indent=4) if metadata else "" + content = yaml.dump(metadata, indent=4, default_flow_style=False) if metadata else "" if not header: return content diff --git a/packit/patches.py b/packit/patches.py index 403934e08..4599452f1 100644 --- a/packit/patches.py +++ b/packit/patches.py @@ -141,7 +141,7 @@ def from_commit( if metadata: logger.debug( f"Commit {commit.hexsha:.8} metadata:\n" - f"{yaml.dump(metadata, indent=4)}" + f"{yaml.dump(metadata, indent=4, default_flow_style=False)}" ) metadata_defined = True else: