<#693 bugfix: cli common to dict when available> P...
# flyte-github
a
#693 bugfix: cli common to dict when available Pull request opened by fiedlerNr9
flyte get run fbm4zqnjnxrzwtwbrcg9
is currently failing with ->
Error invoking command: 'RunDetails' object is not iterable
same for
flyte get action -p jan-playground -d development rx558bjvt24frkk72g8z a0
->
Error invoking command: 'Action' object is not iterable
• _common.py (format function): assumes items are iterable for JSON. • remote.Action or remote.RunDetails is not iterable, so dict(Action) raises TypeError: 'Action' object is not iterable. This PR: • Update the JSON formatter to use to_dict() when available flyte get action -p jan-playground -d development rx558bjvt24frkk72g8z a0 [ { 'id': { 'run': { 'org': 'dogfood', 'project': 'jan-playground', 'domain': 'development', 'name': 'rx558bjvt24frkk72g8z' }, 'name': 'a0' }, 'metadata': { 'executedBy': { 'user': { 'id': {'subject': '00ucd5xbcxysOR9sS1d7'}, 'spec': { 'firstName': 'Jan', 'lastName': 'Fiedler', 'email': 'jan@union.ai' } } }, 'task': { 'id': { 'org': 'dogfood', 'project': 'jan-playground', 'domain': 'development', 'name': 'another.entry', 'version': '60d3054b563d466fd42825134c2dbd43' }, 'taskType': 'python', 'shortName': 'entry' }, 'actionType': 'ACTION_TYPE_TASK', 'environmentName': 'another', 'funtionName': 'entry' }, 'status': { 'phase': 'ACTION_PHASE_SUCCEEDED', 'startTime': '2026-02-19T112520.421581Z', 'endTime': '2026-02-19T112533Z', 'attempts': 1, 'durationMs': '12578' } } ] flyteorg/flyte-sdk