changed logic for var_time, improved error message for incorrect monitor_interval input

Signed-off-by: Dipti <dipti.dhond@candelatech.com>
This commit is contained in:
Dipti
2021-02-20 14:35:24 -08:00
parent 35d1443e2b
commit 87210c1cb7
3 changed files with 11 additions and 7 deletions

View File

@@ -684,7 +684,7 @@ class Realm(LFCliBase):
else:
duration_time = datetime.timedelta(seconds=dur_time)
else:
raise ValueError("Unknown value for time_string: %s" % time_string)
raise ValueError("Cannot compute time string provided: %s" % time_string)
else:
raise ValueError("time_string must be of type str. Type %s provided" % type(time_string))
return duration_time