From 36ed2a0b5a599fd31678f0fe89d02e6662f504ed Mon Sep 17 00:00:00 2001 From: Vadim Troshchinskiy Date: Thu, 28 Aug 2025 09:57:01 +0200 Subject: [PATCH] refs #2506 -- allow options to be empty --- ogclient/interfaceAdm/ModificarImagenGit | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ogclient/interfaceAdm/ModificarImagenGit b/ogclient/interfaceAdm/ModificarImagenGit index c9ac305..9058fb8 100755 --- a/ogclient/interfaceAdm/ModificarImagenGit +++ b/ogclient/interfaceAdm/ModificarImagenGit @@ -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: