From d64cb86964004d04c453b24e6819e82f0720ccc7 Mon Sep 17 00:00:00 2001 From: Daniel Ecer <de-code@users.noreply.github.com> Date: Tue, 2 Jan 2018 11:21:05 +0000 Subject: [PATCH] allow emty job suffix --- sciencebeam_gym/beam_utils/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sciencebeam_gym/beam_utils/main.py b/sciencebeam_gym/beam_utils/main.py index a35d439..c621514 100644 --- a/sciencebeam_gym/beam_utils/main.py +++ b/sciencebeam_gym/beam_utils/main.py @@ -40,7 +40,7 @@ def get_default_job_name(name, suffix=''): from getpass import getuser from time import gmtime, strftime timestamp_str = strftime("%Y%m%d-%H%M%S", gmtime()) - return '%s-%s%s-%s' % (name or 'beamapp', getuser(), suffix, timestamp_str) + return '%s-%s%s-%s' % (name or 'beamapp', getuser(), suffix or '', timestamp_str) def add_cloud_args(parser): parser.add_argument( -- GitLab