From 4b05e4cc1df8cc567628a284731a3c4c5276615d Mon Sep 17 00:00:00 2001 From: Pathma Sri Ambegode Gedara Date: Thu, 31 Oct 2024 01:37:58 -0400 Subject: [PATCH] PRODENG-2744 Remove rhel 7 repository --- pkg/configurer/enterpriselinux/el.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/configurer/enterpriselinux/el.go b/pkg/configurer/enterpriselinux/el.go index 8ebd5b6e..e97e5893 100644 --- a/pkg/configurer/enterpriselinux/el.go +++ b/pkg/configurer/enterpriselinux/el.go @@ -61,10 +61,6 @@ func (c Configurer) InstallMCR(h os.Host, scriptPath string, engineConfig common log.Infof("%s: appears to be an AWS EC2 instance, installed rh-amazon-rhui-client", h) } - if h.Exec("sh -c 'yum-config-manager --enable rhel-7-server-rhui-extras-rpms && yum makecache fast'", exec.Sudo(h)) == nil { - log.Infof("%s: enabled rhel-7-server-rhui-extras-rpms repository", h) - } - if err := c.LinuxConfigurer.InstallMCR(h, scriptPath, engineConfig); err != nil { return fmt.Errorf("failed to install MCR: %w", err) }