Skip to content

Commit

Permalink
fix extra spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
jsloyer authored and hkantare committed May 17, 2021
1 parent c83ca3c commit 3d64e95
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions ibm/data_source_ibm_satellite_host_script.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
`)
}
}
Expand Down

0 comments on commit 3d64e95

Please sign in to comment.