Skip to content

Commit

Permalink
fix: do not read data config for info command
Browse files Browse the repository at this point in the history
  • Loading branch information
houqp committed Jan 18, 2018
1 parent 504a413 commit db84284
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions floyd/cli/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import floyd
from floyd.cli.utils import (
get_module_task_instance_id, normalize_job_name, normalize_data_name
get_module_task_instance_id, normalize_job_name
)
from floyd.client.experiment import ExperimentClient
from floyd.client.module import ModuleClient
Expand Down Expand Up @@ -125,8 +125,9 @@ def info(job_name_or_id):

task_instance_id = get_module_task_instance_id(experiment.task_instances)
task_instance = TaskInstanceClient().get(task_instance_id) if task_instance_id else None
table = [["Job name", normalize_job_name(experiment.name)],
["Output name", normalize_data_name(experiment.name + '/output') if task_instance else None],
normalized_job_name = normalize_job_name(experiment.name)
table = [["Job name", normalized_job_name],
["Output name", normalized_job_name + '/output' if task_instance else None],
["Created", experiment.created_pretty],
["Status", experiment.state], ["Duration(s)", experiment.duration_rounded],
["Instance", experiment.instance_type_trimmed],
Expand Down

0 comments on commit db84284

Please sign in to comment.