Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Running yum commands may hang waiting for user input (#3025) #3026

Merged
merged 2 commits into from
Mar 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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