-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terraform plan forces replacement of imported harbor_robot_account resource #447
Comments
Signed-off-by: flbla <[email protected]>
hello, |
fixes #447 Signed-off-by: flbla <[email protected]>
Signed-off-by: flbla <[email protected]>
Signed-off-by: flbla <[email protected]>
it will be in the v3.10.12 (build in progress) |
Hi @flbla - thanks for the quick fix! I tried using the latest provider version In case this helps you investigating, I am trying to import a system level robot account. |
Hi @nafaa-tayachi , terraform init :
I created a system robot account through the GUI : Then I created this tf code :
I imported it :
and when I try to apply it, it do not replace it, just update it :
|
after the upgrade to v3.10.12, did you try remove it from the state and re-import it ? |
my bad .. it is working now |
Describe the bug
When I run
terraform plan
after importing a robot account resource, the plan shows it will force replace the resource.Snippet from the terraform plan output:
To Reproduce
Expected behavior
No force replacement on the imported robot account resource.
Additional context
I am not sure but I think the cause is that the
name
argument is missing in the function resourceRobotAccountReadv3.10.11
v1.6.4
v2.10.0-6abb4eab
The text was updated successfully, but these errors were encountered: