From 067091bb361a95c7dd92533e0fdcb98c1af8ff99 Mon Sep 17 00:00:00 2001 From: bossOfCode <95505913+bossOfCode@users.noreply.github.com> Date: Fri, 23 Aug 2024 20:55:54 +0000 Subject: [PATCH] update --- generate.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/generate.py b/generate.py index 89009c7..40361fa 100644 --- a/generate.py +++ b/generate.py @@ -8,8 +8,9 @@ name = os.environ.get("INPUTS_NAME") OUTPUT = "" +VERSION = getattr(uuid, "uuid+VERSION") -versions = [1, 3, 4, 5] +versions = ["uuid1", "uuid3", "uuid4", "uuid5"] namespaces = ["DNS", "URL", "OID", "X500"] def print_in_os(argument): @@ -18,7 +19,7 @@ def print_in_os(argument): os.system(f"{argument}") if VERSION in versions or namespace in namespaces: - OUTPUT = str(uuid.uuid{VERSION}()) + OUTPUT = str(VERSION()) else: if namespace in namespaces: sys.exit(f"ERROR: namespace cannot be {namespace}; must be either DNS, URL, OID, or X500.")