From 4815a90eb607a0bfc0cd8921d72204112400fb68 Mon Sep 17 00:00:00 2001 From: Guillaume Delacour Date: Thu, 7 Apr 2022 18:38:43 +0200 Subject: [PATCH] Reverse sort MSK results by default (#78) Also point to the right url for detailed version informations. --- generate.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/generate.py b/generate.py index a36a33d..0c225b4 100755 --- a/generate.py +++ b/generate.py @@ -14,7 +14,7 @@ from jinja2 import Template GENERATION_DATE = datetime.datetime.now() -VERSION = "0.7" +VERSION = "0.7.1" ELASTICACHE_ENGINES = ["memcached", "redis"] @@ -22,7 +22,7 @@ "opensearch": "https://docs.aws.amazon.com/opensearch-service/latest/developerguide/what-is.html#aes-choosing-version", "redis": "https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/supported-engine-versions.html", "memcached": "https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/supported-engine-versions.html", - "kafka": "https://docs.aws.amazon.com/msk/latest/developerguide/what-is-msk.html", + "kafka": "https://docs.aws.amazon.com/msk/latest/developerguide/kafka-versions.html", "kubernetes": "https://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html", "lambda": "https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html", "postgres": "https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html", @@ -192,6 +192,8 @@ def msk_versions(): for version in msk.list_kafka_versions()["KafkaVersions"]: if version["Status"] == "ACTIVE": active_versions.append(version["Version"]) + active_versions.sort() + active_versions.reverse() return test_versions(active_versions)