Skip to content

Commit 61aa237

Browse files
authored
Add env variable "FORTIGATE_UUID" to set the VM UUID for licensing purposes (#275)
1 parent 536877e commit 61aa237

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fortigate/docker/launch.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def __init__(self, hostname, username, password, conn_mode):
5555
self.num_nics = 12
5656
self.nic_type = "virtio-net-pci"
5757
self.highest_port = 0
58-
self.qemu_args.extend(["-uuid", str(uuid.uuid4())])
58+
self.qemu_args.extend(["-uuid", os.getenv("FORTIGATE_UUID") or str(uuid.uuid4())])
5959
self.spins = 0
6060
self.running = None
6161

0 commit comments

Comments
 (0)