Skip to content

invalid OCID provided for import hangs instead of producing error #415

Closed
@nshttpd

Description

@nshttpd

Terraform Version

Terraform v0.11.1
  + provider.oci v2.0.6

Description:

importing an oci_identity_policy while providing the incorrect OCID (like, say a container ocid and not a policy ocid, because things) causes the import process to just hang and not error out. In fact it hangs saying that it was successful.

2018-01-09T13:10:27.272-0500 [DEBUG] plugin.terraform-provider-oci_v2.0.6: 2018/01/09 13:10:27 [INFO] terraform-provider-oci 2.0.6
2018-01-09T13:10:27.273-0500 [DEBUG] plugin.terraform-provider-oci_v2.0.6: 2018/01/09 13:10:27 [DEBUG] plugin: plugin address: unix /var/folders/2f/ppyk_7p17xxc12s6s8d24f9h0000gn/T/plugin754887660
oci_identity_policy.elk_compartment: Importing from ID "ocid1.compartment.oc1..aablahblahblahkhdpa"...
oci_identity_policy.elk_compartment: Import complete!
  Imported oci_identity_policy (ID: ocid1.compartment.oc1..aaabblablahblahgkhdpa)
oci_identity_policy.elk_compartment: Refreshing state... (ID: ocid1.compartment.oc1..aablahblahblahhdpa)

Notice it's not an ocid1.policy, but ocid1.compartment so it should at some point have produced an error trying to serialize the REST response into the TF Object Schema.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions