-
Notifications
You must be signed in to change notification settings - Fork 6
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
[Bug] citrix_application_icon cannot be deleted if same .ico file is used across multiple applications #175
Comments
@gideon-berger-FIS Our expectation is that you use a single If you switch to sharing a |
How would you envision that we reference a |
Thanks I see how this issue comes up with your In the meantime I think I may have a workaround for you if all of your apps with shared icons are managed by Terraform. You can de-duplicate the icons by creating a set using the icon value and then reference from the de-duplicated set. I'm doing the reference by the hash of the icon data to avoid dumping the icon data in the terraform plan output after it is created.
|
Thank you for this! I do think this will indeed work if we want to reuse an icon across multiple applications in the However our main use case is sharing icons across different terraform workspaces. For each client we would be deploying the same set of applications with the same icons. So it would basically be your code above, but created for multiple delivery groups managed across multiple terraform workspaces. It sounds like your solution in this case would be to create all icons we plan to use in a single place, then have all of our client workspaces retrieve the Keeping this in mind it might make sense for the Thank you for taking a look at this! |
I agree having a name would be nice. Unfortunately the backend does not support that, so the best we can do is match by |
Describe the bug
I am trying to create applications across two different delivery groups (for two different clients). In each case I create a citrix_application_icon resource which points to the same base64 encoded icon file.
When I create the second citrix_application_icon, terraform returns back that it was successfully created, but returns back the ID of the icon created by the first application.
Now there is only a single icon which is being used for both applications. If I want to delete one of the applications, I must remove the icon from all other applications that are using it, otherwise it will not delete since it is in-use
I have no data source I can use to retrieve an existing icon, and even then the icon does not have any identifier associated with it to query.
Terraform command (import, apply, etc):
terraform apply
Resource impacted:
citrix_application_icon
Versions
Terraform:
1.9.6
citrix/citrix provider:
1.0.8
Operation system:
Windows 11
Terraform configuration files
After running terraform apply with two applications using the same base64 encoded string as the icon, remove one application and run terraform apply again
Terraform console output
{"@Level":"error","@message":"Error: Error deleting Application Icon 6","@module":"terraform.ui","@timestamp":"2025-01-13T17:58:51.553779Z","diagnostic":{"severity":"error","summary":"Error deleting Application Icon 6","detail":"TransactionId: 4974d3a5-67c3-4ecc-9095-383bb9437797\nError message: Icon is in use."}
Terraform log file
If the issue is reproducible enable Terraform debug logging using one of the commands below. Then reproduce the issue and include the resulting log file. More information about Terraform logging is available here.
CitrixIssueId: XAC-60334
The text was updated successfully, but these errors were encountered: