delphix-integrations / terraform-provider-delphix

Repository for Delphix Terraform Provider built on DCT APIs.
https://integrations.delphix.com
11 stars 9 forks source link

Dsource fedex #70

Closed ankit-patil-hubs closed 11 months ago

ankit-patil-hubs commented 11 months ago

Problem:

HUBS-2080 when a name is provided in source_id in TF file source gets created but the value of source_id in state file is replaced with the id from dct response which causes drift in subsequent operations

Solution:

rename source_id to sourece_value as we support both id/name in input and persist the same source_value as user input and keep the source_id as received from dct response

Testing

Manually tested

Note:

Added changes from Nick's PR: https://github.com/delphix-integrations/terraform-provider-delphix/pull/63