Skip to content

Commit

Permalink
Fix Running yum commands may hang waiting for user input (#3025) (#3026)
Browse files Browse the repository at this point in the history
* Fix Running yum commands may hang waiting for user input (#3025)
  • Loading branch information
sbbroot authored Mar 15, 2022
1 parent b58cb69 commit bf2bc57
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,17 @@ def remove(self, package: str,
self.run(['remove', no_ask, package])

def is_repo_enabled(self, repo: str) -> bool:
output = self.run(['repolist',
output = self.run(['-y',
'repolist',
'enabled']).stdout
if repo in output:
return True

return False

def find_rhel_repo_id(self, patterns: List[str]) -> List[str]:
output = self.run(['repolist',
output = self.run(['-y',
'repolist',
'all']).stdout

repos: List[str] = []
Expand Down Expand Up @@ -104,7 +106,8 @@ def makecache(self, fast: bool = True,
self.run(args)

def list_all_repo_info(self) -> List[str]:
args: List[str] = ['repolist',
args: List[str] = ['-y',
'repolist',
'-v',
'all']
return self._run_and_filter(args)
1 change: 1 addition & 0 deletions docs/changelogs/CHANGELOG-2.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
- [#2930](https://github.com/epiphany-platform/epiphany/issues/2930) - Backup/recovery commands fail when default configuration for backup attached to cluster-config.yml
- [#2989](https://github.com/epiphany-platform/epiphany/issues/2989) - Task `Remove swap from /etc/fstab` does not remove swap entry from file
- [#2907](https://github.com/epiphany-platform/epiphany/issues/2907) - Backup/recovery commands fail when executed directly after upgrade
- [#3025](https://github.com/epiphany-platform/epiphany/issues/3025) - Running yum commands may hang waiting for user input

### Updated

Expand Down

0 comments on commit bf2bc57

Please sign in to comment.