refs #2506 -- allow options to be empty
parent
cf17d765a0
commit
36ed2a0b5a
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue