Skip to content

Commit 7eb2834

Browse files
committed
terraform/OCI: Use "output yaml" for the source image setting
Refactor: Remove the line in terraform.Makefile that sets "terraform_oci_os_image_ocid" and just pass it directly from Kconfig via an "output yaml" directive. Reviewed-by: Luis Chamberlain <[email protected]> Reviewed-by: Chandan Babu R <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
1 parent 0283fcd commit 7eb2834

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/terraform.Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ KDEVOPS_MRPROPER += $(KDEVOPS_NODES)
4848
DEFAULT_DEPS_REQS_EXTRA_VARS += $(KDEVOPS_TFVARS)
4949

5050
ifeq (y,$(CONFIG_TERRAFORM_OCI))
51-
TERRAFORM_EXTRA_VARS += terraform_oci_os_image_ocid=$(subst ",,$(CONFIG_TERRAFORM_OCI_OS_IMAGE_OCID))
5251
ifeq (y, $(CONFIG_TERRAFORM_OCI_ASSIGN_PUBLIC_IP))
5352
TERRAFORM_EXTRA_VARS += terraform_oci_assign_public_ip=true
5453
else

terraform/oci/kconfigs/Kconfig.compute

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ source "terraform/oci/kconfigs/shapes/Kconfig.generic"
4040
source "terraform/oci/kconfigs/shapes/Kconfig.bm"
4141

4242
config TERRAFORM_OCI_OS_IMAGE_OCID
43-
string "OCI OS image OCID"
43+
string "OS image OCID"
44+
output yaml
4445
help
4546
The OCI ID of the OS image to use.
4647
Read this:

0 commit comments

Comments
 (0)