Project

General

Profile

Actions

Bug #23303

closed

hammer -r gives syntax error in katello api

Added by Rahul Bajaj about 6 years ago. Updated over 5 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

note: Ruby version - 2.5.1
Rails version - 5.2.1

When we do `FOREMAN_APIPIE_LANGS=en rake apipie:cache:index` it gives an error like:

rake aborted!
SyntaxError: /home/vagrant/katello/app/controllers/katello/api/v2/repositories_controller.rb:19: syntax error, unexpected '{', expecting keyword_end
...n :only => [:create, :update] { find_content_credential CONT...
... ^
/home/vagrant/katello/app/controllers/katello/api/v2/repositories_controller.rb:20: syntax error, unexpected '{', expecting keyword_end
...n :only => [:create, :update] { find_content_credential CONT...
... ^
/home/vagrant/katello/app/controllers/katello/api/v2/repositories_controller.rb:21: syntax error, unexpected '{', expecting keyword_end
...n :only => [:create, :update] { find_content_credential CONT...
... ^
/home/vagrant/katello/app/controllers/katello/api/v2/repositories_controller.rb:22: syntax error, unexpected '{', expecting keyword_end
...n :only => [:create, :update] { find_content_credential CONT...
... ^
/home/vagrant/.rvm/gems/ruby-2.5.1/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:476:in `load'
/home/vagrant/.rvm/gems/ruby-2.5.1/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:476:in `block in load_file'
/home/vagrant/.rvm/gems/ruby-2.5.1/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:661:in `new_constants_in'
/home/vagrant/.rvm/gems/ruby-2.5.1/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:475:in `load_file'
/home/vagrant/.rvm/gems/ruby-2.5.1/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:374:in `block in require_or_load'
/home/vagrant/.rvm/gems/ruby-2.5.1/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:36:in `block in load_i


Related issues 1 (0 open1 closed)

Is duplicate of Katello - Bug #24726: Make Katello Ruby 2.5 compliantClosedEric HelmsActions
Actions

Also available in: Atom PDF