diff -uNrp subscription-manager-1.24.13.orig/src/subscription_manager/repofile.py subscription-manager-1.24.13/src/subscription_manager/repofile.py --- subscription-manager-1.24.13.orig/src/subscription_manager/repofile.py 2019-06-21 18:36:40.000000000 +0000 +++ subscription-manager-1.24.13/src/subscription_manager/repofile.py 2019-08-07 15:55:54.331501447 +0000 @@ -345,6 +345,7 @@ class RepoFileBase(object): return self.path_exists(self.path) def create(self): + return if self.path_exists(self.path) or not self.manage_repos: return with open(self.path, 'w') as f: