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

feat: Add env override to CommandOutputProvider #3636

Merged
merged 1 commit into from
Jan 10, 2023
Merged

feat: Add env override to CommandOutputProvider #3636

merged 1 commit into from
Jan 10, 2023

Conversation

ryan-blakley
Copy link
Contributor

All Pull Requests:

Check all that apply:

  • Have you followed the guidelines in our Contributing document, including the instructions about commit messages?
  • Is this PR to correct an issue?
  • Is this PR an enhancement?

Complete Description of Additions/Changes:

Added the ability to override env variables in CommandOutputProvider for specs, along with updating each function that inherited from CommandOutputProvider. Added an override for the yum command to unset the LC_ALL env variable. Fixed an issue where self.create_env() was being called multiple times instead of once. Fixed some pep issues.

@ryan-blakley ryan-blakley requested a review from xiangce December 16, 2022 21:45
@ryan-blakley
Copy link
Contributor Author

@xiangce Not sure if this is the best method, but this change fixes the issue mentioned in bz 2091084, and possibly the others related to character issues.

Copy link
Contributor

@xiangce xiangce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ryan-blakley - I think this is a good workaround to the character issue and thanks for adding the interface to override the default evn.

* Added the ability to override env variables in CommandOutputProvider
  for specs, along with updating each function that inherited from
  CommandOutputProvider.
* Added an override for the yum repolist command to unset the LC_ALL env
  variable.
* Fixed an issue where self.create_env() was being called multiple
  times instead of once.
* Fixed some pep issues.

Signed-off-by: Ryan Blakley <[email protected]>
@bfahr bfahr merged commit 555963c into RedHatInsights:master Jan 10, 2023
bfahr pushed a commit that referenced this pull request Jan 10, 2023
* Added the ability to override env variables in CommandOutputProvider
  for specs, along with updating each function that inherited from
  CommandOutputProvider.
* Added an override for the yum repolist command to unset the LC_ALL env
  variable.
* Fixed an issue where self.create_env() was being called multiple
  times instead of once.
* Fixed some pep issues.

Signed-off-by: Ryan Blakley <[email protected]>

Signed-off-by: Ryan Blakley <[email protected]>
(cherry picked from commit 555963c)
xiangce pushed a commit that referenced this pull request Sep 6, 2024
* Added the ability to override env variables in CommandOutputProvider
  for specs, along with updating each function that inherited from
  CommandOutputProvider.
* Added an override for the yum repolist command to unset the LC_ALL env
  variable.
* Fixed an issue where self.create_env() was being called multiple
  times instead of once.
* Fixed some pep issues.

Signed-off-by: Ryan Blakley <[email protected]>

Signed-off-by: Ryan Blakley <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants