]> source.dussan.org Git - vaadin-framework.git/commitdiff
fix python script update agent update (python3)
authorZhe Sun <31067185+ZheSun88@users.noreply.github.com>
Wed, 6 Oct 2021 07:19:53 +0000 (10:19 +0300)
committerGitHub <noreply@github.com>
Wed, 6 Oct 2021 07:19:53 +0000 (10:19 +0300)
scripts/GeneratePostPublishReport.py

index 4b11daf7542c938dd5b9be2a31a61d5ee889f278..4117fac4304a47e3cc665e30756986863bc3ebc9 100644 (file)
@@ -33,7 +33,7 @@ def checkArchetypeMetaData(archetypeMetadataUrl, version):
        if archetype_metadata_request.status_code != 200:
                return createTableRow(traffic_light.format(color="black"), "Check archetype metadata: <a href='{url}'>unable to retrieve metadata from {url}</a>".format(url=archetypeMetadataUrl))
        else:
-               if "version=\"{version}\"".format(version=version) in archetype_metadata_request.content:
+               if "version=\"{version}\"".format(version=version) in archetype_metadata_request.text:
                        return createTableRow(traffic_light.format(color="green"), "Check archetype metadata: <a href='{url}'>metadata is correct for {url}</a>".format(url=archetypeMetadataUrl))
                else:
                        return createTableRow(traffic_light.format(color="red"), "Check archetype metadata: <a href='{url}'>metadata seems to be incorrect for {url}</a>".format(url=archetypeMetadataUrl))