refs #2506 -- allow options to be empty

pull/108/head
Vadim vtroshchinskiy 2025-08-28 09:57:01 +02:00
parent cf17d765a0
commit 36ed2a0b5a
1 changed files with 4 additions and 3 deletions

View File

@ -78,9 +78,10 @@ def commit_image(disk_num, partition_num, repository, branch, options, msg):
sys.exit(SystemLib.ogRaiseError([], ogGlobals.OG_ERR_FORMAT, f"Failed to translate disk {disk_num} partition {partition_num} to a device"))
force_push = False
opts = options.split(",")
if "force_push" in opts:
force_push = True
if options:
opts = options.split(",")
if "force_push" in opts:
force_push = True
try:
if branch: