python-terraform icon indicating copy to clipboard operation
python-terraform copied to clipboard

Terraform output does not work with v0.12

Open ib-ak opened this issue 6 years ago • 3 comments

Terraform output does not work with v0.12

    ret, out, err = self.output_cmd(*args, **kwargs)

    if ret != 0:
        return None

    out = out.lstrip()

    value = json.loads(out)

    if name_provided and not full_value:
        value = value['value']

code expects out to be dictionary. v0.12 might be having it as str

ib-ak avatar Nov 01 '19 19:11 ib-ak

I will take a look this weekend.

Spikeophant avatar Nov 06 '19 19:11 Spikeophant

I will take a look this weekend.

Thanks

ib-ak avatar Nov 06 '19 20:11 ib-ak

I think I see what's going on here and should have a fix in the new version that will be out in a couple weeks.

Spikeophant avatar Nov 11 '19 19:11 Spikeophant