diff --git a/abm/VERSION b/abm/VERSION index 3a591c1..a603bb5 100644 --- a/abm/VERSION +++ b/abm/VERSION @@ -1 +1 @@ -2.8.0-dev.1 +2.7.5 diff --git a/abm/lib/common.py b/abm/lib/common.py index dc8c63c..5a999fa 100644 --- a/abm/lib/common.py +++ b/abm/lib/common.py @@ -255,6 +255,9 @@ def get_keys(d: dict): def find_history(gi, name_or_id): + history = gi.histories.get_histories(history_id=name_or_id) + if history is not None and len(history) > 0: + return history[0]['id'] history = gi.histories.get_histories(name=name_or_id) if history is None: return name_or_id diff --git a/abm/lib/experiment.py b/abm/lib/experiment.py index ce7c115..178f82e 100644 --- a/abm/lib/experiment.py +++ b/abm/lib/experiment.py @@ -96,6 +96,8 @@ def test(context: Context, args: list): def parse_toolid(id:str) -> str: parts = id.split('/') + if len(parts) < 2: + return f"{id},unknown" return f"{parts[-2]},{parts[-1]}" diff --git a/abm/lib/job.py b/abm/lib/job.py index 55370c0..66bccf5 100644 --- a/abm/lib/job.py +++ b/abm/lib/job.py @@ -157,5 +157,5 @@ def rerun(context: Context, args: list): print("ERROR: no job ID provided") return gi = connect(context) - result = gi.jobs.rerun_job(args[0]) + result = gi.jobs.rerun_job(args[0], remap=True) print_json(result) \ No newline at end of file