Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bossOfCode authored Aug 23, 2024
1 parent b8a46bf commit 067091b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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.")
Expand Down

0 comments on commit 067091b

Please sign in to comment.