From 986f7bbc6a13609b323cc83c318f93ee0723f398 Mon Sep 17 00:00:00 2001 From: Eugene Zamriy Date: Sun, 2 Apr 2023 19:03:40 +0300 Subject: [PATCH 3/3] Disable repo file creation --- src/subscription_manager/repofile.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/subscription_manager/repofile.py b/src/subscription_manager/repofile.py index 650d963..8bda5f7 100644 --- a/src/subscription_manager/repofile.py +++ b/src/subscription_manager/repofile.py @@ -370,11 +370,7 @@ class RepoFileBase(object): Try to create new repo file. :return: None """ - self.create_dir_path() - if self.path_exists(self.path) or not self.manage_repos: - return - with open(self.path, "w") as f: - f.write(self.REPOFILE_HEADER) + pass def fix_content(self, content): return content -- 2.39.2