fix escaping

This commit is contained in:
Michael Jerger 2023-08-16 17:09:24 +02:00
parent ad6287aafe
commit fea084c09a
2 changed files with 3 additions and 3 deletions

View file

@ -33,7 +33,7 @@ default_task = "dev"
name = "ddadevops"
MODULE = "not-used"
PROJECT_ROOT_PATH = "."
version = "4.4.1-dev"
version = "4.4.1-dev0"
summary = "tools to support builds combining gopass, terraform, dda-pallet, aws & hetzner-cloud"
description = __doc__
authors = [Author("meissa GmbH", "buero@meissa-gmbh.de")]

View file

@ -227,11 +227,11 @@ class ArtifactDeploymentApi:
return self.execution_api.execute_secure(
f'curl -X "POST" "{api_endpoint_url}" '
+ '-H "accept: application/json" -H "Content-Type: application/json" '
+ f'-d "{{ "body": "Provides files for release {tag} Attention: The "Source Code"-files below are not up-to-date!", "tag_name": "{tag}"}}" ' # noqa: E501
+ f'-d \'{{ "body": "Provides files for release {tag}", "tag_name": "{tag}"}}\' ' # noqa: E501
+ f'-H "Authorization: token {token}"',
sanitized_command=f'curl -X "POST" "{api_endpoint_url}" '
+ '-H "accept: application/json" -H "Content-Type: application/json" '
+ f'-d "{{ "body": "Provides files for release {tag} Attention: The "Source Code"-files below are not up-to-date!", "tag_name": "{tag}"}}" ', # noqa: E501
+ f'-d \'{{ "body": "Provides files for release {tag}", "tag_name": "{tag}"}}\' ', # noqa: E501
) # noqa: E501
def add_asset_to_release(