beelit94 / python-terraform

MIT License
475 stars 171 forks source link

Terraform output does not work with v0.12 #70

Open ib-ak opened 5 years ago

ib-ak commented 5 years ago

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

Spikeophant commented 5 years ago

I will take a look this weekend.

ib-ak commented 5 years ago

I will take a look this weekend.

Thanks

Spikeophant commented 4 years ago

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.