Skip to content

Commit

Permalink
properly confine the pulpcore feature
Browse files Browse the repository at this point in the history
otherwise it is present on Foreman setups and might break things
  • Loading branch information
evgeni committed Aug 21, 2024
1 parent 8625f1b commit ea8083a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion definitions/features/pulpcore.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ class Features::Pulpcore < ForemanMaintain::Feature

TIMEOUT_FOR_TASKS_STATUS = 300
RETRY_INTERVAL_FOR_TASKS_STATE = 10
PULP_SETTINGS = '/etc/pulp/settings.py'

Check failure on line 8 in definitions/features/pulpcore.rb

View workflow job for this annotation

GitHub Actions / rubocop / Rubocop

Style/MutableConstant: Freeze mutable objects assigned to constants.

metadata do
label :pulpcore

confine do
File.exist?(PULP_SETTINGS)
end
end

def cli(args)
Expand Down Expand Up @@ -49,7 +54,7 @@ def configured_workers

def config_files
[
'/etc/pulp/settings.py',
PULP_SETTINGS,
'/etc/pulp/certs/database_fields.symmetric.key',
]
end
Expand Down

0 comments on commit ea8083a

Please sign in to comment.