Uploaded image for project: 'Razor (moved to puppet.atlassian.net)'
  1. Razor (moved to puppet.atlassian.net)
  2. RAZOR-268

Running 'razor help set-node-hw-info' produces a 500 error

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • RAZOR 0.15.0
    • QA, Server
    • None

    Description

      Here's the start of the stacktrace:

      17:17:06,599 INFO  [razor.web.api] (http-/0.0.0.0:8080-1) NoMethodError - undefined method `[]' for nil:NilClass:
              /home/lutter/code/razor-server/lib/razor/validation/hash_attribute.rb:71:in `to_json'
              json/ext/GeneratorMethods.java:71:in `to_json'
              /home/lutter/code/razor-server/lib/razor/validation/hash_schema.rb:168:in `to_json'
              json/ext/GeneratorMethods.java:71:in `to_json'
              /home/lutter/code/razor-server/lib/razor/command.rb:86:in `handle_http_get'
              /home/lutter/code/razor-server/app.rb:536:in `HEAD /api/commands/:name'
              org/jruby/RubyMethod.java:124:in `call'
              /home/lutter/.rbenv/versions/jruby-1.7.8/lib/ruby/gems/shared/gems/sinatra-1.4.4/lib/sinatra/base.rb:1593:in `compile!'
              org/jruby/RubyProc.java:271:in `call'
      
      

      Attachments

        Issue Links

          Activity

            People

              phong Phong Ly
              lutter David Lutterkort
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support