Actions
Bug #34100
closedTFTP Storage check fails on undefined method `[]' for nil:NilClass
Difficulty:
Triaged:
No
Bugzilla link:
Description
the problem is in ./definitions/checks/foreman_proxy/check_tftp_storage.rb:
def self.lookup_token_duration
data = feature(:foreman_database). \
query("select s.value, s.default from settings s \
where category = 'Setting::Provisioning' and name = 'token_duration'")
YAML.load(data[0]['value'] || data[0]['default'])
end
but `data` is `[]`, so `data0` is nil and `nil['value']` gets you the nice error
Updated by The Foreman Bot over 3 years ago
- Status changed from New to Ready For Testing
- Assignee set to Evgeni Golov
- Pull request https://github.com/theforeman/foreman_maintain/pull/568 added
Updated by Evgeni Golov over 3 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_maintain|9827cff3828dd92d72fbe7abaa2b0959bf86e9d0.
Actions