Skip to content

Commit

Permalink
Drop uses of max_version
Browse files Browse the repository at this point in the history
  • Loading branch information
ehelms committed Feb 21, 2024
1 parent 596a4d4 commit 6078740
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 72 deletions.
6 changes: 1 addition & 5 deletions definitions/features/foreman_proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@ def dhcpd_conf_exist?
end

def services
services = [system_service('foreman-proxy', 40)]
if check_max_version('foreman-proxy', '2.4')
services << system_service('smart_proxy_dynflow_core', 20)
end
services
[system_service('foreman-proxy', 40)]
end

def features
Expand Down
4 changes: 1 addition & 3 deletions definitions/features/foreman_tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,9 @@ def delete(state)
DELETE FROM foreman_tasks_tasks WHERE #{tasks_condition};
-- Delete locks and links which may now be orphaned
DELETE FROM foreman_tasks_locks as ftl where ftl.task_id NOT IN (SELECT id FROM foreman_tasks_tasks);
DELETE FROM foreman_tasks_links as ftl where ftl.task_id NOT IN (SELECT id FROM foreman_tasks_tasks);
SQL

sql += 'DELETE FROM foreman_tasks_links as ftl ' \
'where ftl.task_id NOT IN (SELECT id FROM foreman_tasks_tasks);'

feature(:foreman_database).psql("BEGIN; #{sql}; COMMIT;")

count(state)
Expand Down
64 changes: 0 additions & 64 deletions definitions/procedures/foreman/remove_duplicate_obsolete_roles.rb

This file was deleted.

0 comments on commit 6078740

Please sign in to comment.