From 304db2b4a011343da4dcac16d244fe854b900404 Mon Sep 17 00:00:00 2001 From: Jeff Sloyer Date: Wed, 30 Jun 2021 15:01:43 -0400 Subject: [PATCH 1/2] fix script for gcp --- ibm/data_source_ibm_satellite_host_script.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ibm/data_source_ibm_satellite_host_script.go b/ibm/data_source_ibm_satellite_host_script.go index 0e2faac5cb..d1a7ed2817 100644 --- a/ibm/data_source_ibm_satellite_host_script.go +++ b/ibm/data_source_ibm_satellite_host_script.go @@ -126,7 +126,11 @@ yum repolist all yum install container-selinux -y `) } else if strings.ToLower(hostProvider) == "google" { - lines[i] = "yum update -y" + lines[i] = fmt.Sprintf(`yum update --disablerepo=* --enablerepo="*" -y +yum repolist all +yum install container-selinux -y +yum install subscription-manager -y +` } else { lines[i] = "subscription-manager refresh\nyum update -y\n" } From 266627c53a9798a9e457b86fd3f8bfc14715d146 Mon Sep 17 00:00:00 2001 From: Jeff Sloyer Date: Wed, 30 Jun 2021 15:04:11 -0400 Subject: [PATCH 2/2] Update data_source_ibm_satellite_host_script.go --- ibm/data_source_ibm_satellite_host_script.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ibm/data_source_ibm_satellite_host_script.go b/ibm/data_source_ibm_satellite_host_script.go index d1a7ed2817..c6e38b18b9 100644 --- a/ibm/data_source_ibm_satellite_host_script.go +++ b/ibm/data_source_ibm_satellite_host_script.go @@ -130,7 +130,7 @@ yum install container-selinux -y yum repolist all yum install container-selinux -y yum install subscription-manager -y -` +`) } else { lines[i] = "subscription-manager refresh\nyum update -y\n" }