File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -296,8 +296,12 @@ def main():
296
296
log_write (stats_file , "Expected OCP Version {}" .format (cliargs .ocp_version ))
297
297
log_write (stats_file , "Total IBGUs: {}" .format (len (ibgus )))
298
298
total_clusters = 0
299
- total_prep_duration = (latest_PrepCompletionTime - earliest_PrepStartTime ).total_seconds ()
300
- total_upgrade_duration = (latest_UpgradeCompletionTime - earliest_UpgradeStartTime ).total_seconds ()
299
+ total_prep_duration = 0
300
+ total_upgrade_duration = 0
301
+ if earliest_PrepStartTime != "" and latest_PrepCompletionTime != "" :
302
+ total_prep_duration = (latest_PrepCompletionTime - earliest_PrepStartTime ).total_seconds ()
303
+ if earliest_UpgradeStartTime != "" and latest_UpgradeCompletionTime != "" :
304
+ total_upgrade_duration = (latest_UpgradeCompletionTime - earliest_UpgradeStartTime ).total_seconds ()
301
305
all_prepDurations = []
302
306
all_upgradeDurations = []
303
307
all_rollbackDurations = []
You can’t perform that action at this time.
0 commit comments