mirror of https://github.com/pulumi/pulumi.git
![]() If we fail to import a resource due to a state mismatch, the error today is fairly generic: error: inputs to import do not match the existing resource Although the information is available in the normal diff -- both alongside the resource in the tree view and in the "details" view during the preview -- the error itself is initially jarring in that it doesn't tell you much about why the failure occurred. This change adds a little bit more information to the error message, including the ID of the resource and all unique keys that were found to differ. The result is a bit nicer: error: imported resource sg-04aeda9a214730248's property 'ingress' does not match the existing value This fixes #3737. |
||
---|---|---|
.. | ||
config | ||
deploy | ||
edit | ||
graph | ||
plugin | ||
provider | ||
stack | ||
testdata | ||
asset.go | ||
asset_test.go | ||
custom_timeouts.go | ||
errors.go | ||
properties.go | ||
properties_diff.go | ||
properties_diff_test.go | ||
properties_path.go | ||
properties_path_test.go | ||
properties_test.go | ||
resource_goal.go | ||
resource_id.go | ||
resource_id_test.go | ||
resource_operation.go | ||
resource_state.go | ||
stack.go | ||
status.go | ||
urn.go | ||
urn_test.go |