Created
September 9, 2021 20:25
-
-
Save bish0polis/915f1a96a088c47e6fe84bf9efdd5557 to your computer and use it in GitHub Desktop.
How to overcome the "undefined method `any?' for nil:NilClass" error when mirroring EL8 repos with the frail pulp tool in the junky satellite6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -uBb /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.1.33/app/services/katello/pulp/repository/yum.rb\~ /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.1.33/app/services/katello/pulp/repository/yum.rb | |
--- /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.1.33/app/services/katello/pulp/repository/yum.rb~ 2021-07-06 05:54:49.000000000 -0700 | |
+++ /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.1.33/app/services/katello/pulp/repository/yum.rb 2021-09-09 13:08:36.456417249 -0700 | |
@@ -152,7 +152,7 @@ | |
def self.distribution_bootable?(distribution) | |
# Not every distribution from Pulp represents a bootable | |
# repo. Determine based on the files in the repo. | |
- distribution["files"].any? do |file| | |
+ [*distribution["files"]].any? do |file| | |
if file.is_a? Hash | |
filename = file[:relativepath] | |
else | |
Diff finished. Thu Sep 9 13:20:27 2021 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment