我试图弄清楚当 Resource.Schema 属性之一发生更改时是否可以阻止资源更新。
本质上,我正在构建一个管理基础设施的提供商。我有一个更新固件的资源。就像是:
resource "redfish_simple_update" "update" {
transfer_protocol = "HTTP"
target_firmware_image = "/home/mikeletux/BIOS_FXC54_WN64_1.15.0.EXE"
}
如您所见,target_firmware_image 确实指的是我的固件包的完整路径。我希望能够在不触发更新的情况下更改目录。例如,通过/home/mikeletux/Downloads/BIOS_FXC54_WN64_1.15.0.EXE更改target_firmware_image以上。
我不知道这是否可能。如果做了我自己的研究,我发现要添加到模式中的 CustomDiff 函数,但我认为这与我的场景不匹配。
你觉得我还能做些什么吗?
谢谢!