You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by pe...@apache.org on 2025/10/17 15:52:11 UTC
(cloudstack-terraform-provider) branch add-boot-mode-for-instance updated: case insensitive check
This is an automated email from the ASF dual-hosted git repository.
pearl11594 pushed a commit to branch add-boot-mode-for-instance
in repository https://gitbox.apache.org/repos/asf/cloudstack-terraform-provider.git
The following commit(s) were added to refs/heads/add-boot-mode-for-instance by this push:
new 526ea79 case insensitive check
526ea79 is described below
commit 526ea79f28280fc52d3d3e6efb61e29f92228024
Author: Pearl Dsilva <pe...@gmail.com>
AuthorDate: Fri Oct 17 11:51:59 2025 -0400
case insensitive check
---
cloudstack/resource_cloudstack_instance.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cloudstack/resource_cloudstack_instance.go b/cloudstack/resource_cloudstack_instance.go
index cfcf8d4..b4cc318 100644
--- a/cloudstack/resource_cloudstack_instance.go
+++ b/cloudstack/resource_cloudstack_instance.go
@@ -554,8 +554,8 @@ func resourceCloudStackInstanceRead(d *schema.ResourceData, meta interface{}) er
setValueOrID(d, "template", vm.Templatename, vm.Templateid)
setValueOrID(d, "project", vm.Project, vm.Projectid)
setValueOrID(d, "zone", vm.Zonename, vm.Zoneid)
- d.Set("uefi", vm.Boottype == "UEFI")
- if vm.Boottype == "UEFI" && vm.Bootmode != "" {
+ d.Set("uefi", strings.EqualFold(vm.Boottype, "UEFI"))
+ if strings.EqualFold(vm.Boottype, "UEFI") && vm.Bootmode != "" {
d.Set("boot_mode", vm.Bootmode)
}