From 3d64e95b5e0667abb188ddd5e4a0f8e8d2c964a5 Mon Sep 17 00:00:00 2001 From: Jeff Sloyer Date: Thu, 13 May 2021 12:16:05 -0400 Subject: [PATCH] fix extra spaces --- ibm/data_source_ibm_satellite_host_script.go | 37 ++++++++++---------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/ibm/data_source_ibm_satellite_host_script.go b/ibm/data_source_ibm_satellite_host_script.go index ae93983b8c..07dd74fe46 100644 --- a/ibm/data_source_ibm_satellite_host_script.go +++ b/ibm/data_source_ibm_satellite_host_script.go @@ -120,25 +120,24 @@ func dataSourceIBMSatelliteAttachHostScriptRead(d *schema.ResourceData, meta int } else if strings.ToLower(hostProvider) == "ibm" { lines[i] = "subscription-manager refresh\nsubscription-manager repos --enable=*\n" } else if strings.ToLower(hostProvider) == "azure" { - lines[i] = fmt.Sprintf(` - #Grow the base volume group first - echo -e "r\ne\ny\nw\ny\ny\n" | gdisk /dev/sda - #mark result as true as this returns a non-0 RC when syncing disks - echo -e "n\n\n\n\n\nw\n" | fdisk /dev/sda || true - partx -l /dev/sda || true - partx -v -a /dev/sda || true - pvcreate /dev/sda5 - vgextend rootvg /dev/sda5 - # Grow the TMP LV - lvextend -L+10G /dev/rootvg/tmplv - xfs_growfs /dev/rootvg/tmplv - # Grow the var LV - lvextend -L+20G /dev/rootvg/varlv - xfs_growfs /dev/rootvg/varlv - yum update --disablerepo=* --enablerepo="*microsoft*" -y - yum-config-manager --enable '*' - yum repolist all - yum install container-selinux -y + lines[i] = fmt.Sprintf(`#Grow the base volume group first +echo -e "r\ne\ny\nw\ny\ny\n" | gdisk /dev/sda +#mark result as true as this returns a non-0 RC when syncing disks +echo -e "n\n\n\n\n\nw\n" | fdisk /dev/sda || true +partx -l /dev/sda || true +partx -v -a /dev/sda || true +pvcreate /dev/sda5 +vgextend rootvg /dev/sda5 +# Grow the TMP LV +lvextend -L+10G /dev/rootvg/tmplv +xfs_growfs /dev/rootvg/tmplv +# Grow the var LV +lvextend -L+20G /dev/rootvg/varlv +xfs_growfs /dev/rootvg/varlv +yum update --disablerepo=* --enablerepo="*microsoft*" -y +yum-config-manager --enable '*' +yum repolist all +yum install container-selinux -y `) } }