mirror of
https://github.com/trycua/computer.git
synced 2026-01-01 11:00:31 -06:00
Fix image must have : error
This commit is contained in:
@@ -154,8 +154,8 @@ class Computer:
|
||||
self.interface_logger = Logger("computer.interface", verbosity)
|
||||
|
||||
if not use_host_computer_server:
|
||||
if ":" not in image or len(image.split(":")) != 2:
|
||||
raise ValueError("Image must be in the format <image_name>:<tag>")
|
||||
if ":" not in image:
|
||||
image = f"{image}:latest"
|
||||
|
||||
if not name:
|
||||
# Normalize the name to be used for the VM
|
||||
|
||||
Reference in New Issue
Block a user