Project

General

Profile

Actions

Bug #34361

open

Editing Azure Host from Foreman fais

Added by Ondřej Ezr over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

It throws with 'undefined method `ends_with?'

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2032051

Description of problem:

Here is the error traceback:

2021-12-08T10:46:03 [I|app|62b6d580] Rendered hosts/edit.html.erb within layouts/application (Duration: 20352.3ms | Allocations: 1507368)
2021-12-08T10:46:03 [W|app|62b6d580] undefined method `ends_with?' for nil:NilClass
2021-12-08T10:46:03 [I|app|62b6d580] Backtrace for 'undefined method `ends_with?' for nil:NilClass' error (ActionView::Template::Error): undefined method `ends_with?' for nil:NilClass
62b6d580 | /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_azure_rm-2.1.3/app/models/foreman_azure_rm/azure_rm_compute.rb:214:in `script_command'
62b6d580 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/base.rb:41:in `public_send'
62b6d580 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/base.rb:41:in `value'

Version-Release number of selected component (if applicable):

Foreman 2.3

How reproducible:

Easy

Steps to Reproduce:
1. deploy a new vm to Azure in Satellite
2. Hosts-->All Hosts-->Edit Host

Actual results:

undefined method `ends_with?' for nil:NilClass

Expected results:

Can edit the host

Additional info:

No data to display

Actions

Also available in: Atom PDF