Skip to content

configuration version values are being dropped in the model mapping #87

@ibm-richard

Description

@ibm-richard

python-tfe version

0.1.2

Description

When I read a given HCP TF run, the configuration version appears to be lost during the translation from the http response to the pytfe model.

Testing plan

run.id = "run-....":
read_options = RunReadOptions(
    include=[
        RunIncludeOpt.RUN_PLAN,
        RunIncludeOpt.RUN_APPLY,
        RunIncludeOpt.RUN_CREATED_BY,
        RunIncludeOpt.RUN_WORKSPACE,
        RunIncludeOpt.RUN_CONFIG_VER
    ]
)
try:
    detailed_run = tfe_client.runs.read_with_options(run.id, read_options)
    print(f"Configuration Version: {detailed_run.configuration_version}")

Expected Behavior

I'd expect the associated cv-..... identifier for the configuration version to be included in the response

Actual Behavior

detailed_run.configuration_version is None

Additional Context

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions