Skip to content

Commit

Permalink
Only allow update scenario if target and current versions match
Browse files Browse the repository at this point in the history
  • Loading branch information
ehelms committed Aug 5, 2024
1 parent 20f03ad commit 5f449fd
Show file tree
Hide file tree
Showing 2 changed files with 621 additions and 0 deletions.
5 changes: 5 additions & 0 deletions definitions/scenarios/update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ class Abstract < ForemanMaintain::Scenario
def self.update_metadata(&block)
metadata do
tags :update_scenario

confine do
feature(:instance).target_version == feature(:instance).current_version.to_s[/^\d+\.\d+/]
end

instance_eval(&block)
end
end
Expand Down
Loading

0 comments on commit 5f449fd

Please sign in to comment.