Skip to content

Commit

Permalink
Fix environment param in smart proxies controller
Browse files Browse the repository at this point in the history
  • Loading branch information
mtancoigne committed Dec 12, 2024
1 parent 4f19b3a commit f8a53c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def find_environment_id
end

def find_optional_environment
@environment = Environment.authorized(:view_environments).find(@env_id) if @env_id
@environment = resource_finder(Environment.authorized(:view_environments), @env_id) if @env_id
rescue ActiveRecord::RecordNotFound => e
Foreman::Logging.exception('Resource not found', e, level: :debug)
nil
Expand Down

0 comments on commit f8a53c7

Please sign in to comment.