Bug #7620

When cloning host, old hostname is no longer shown

Added by Dominic Cleal about 3 years ago. Updated about 3 years ago.

Status:Closed
Priority:Normal
Assigned To:Ori Rabin
Category:Host creation
Target version:Sprint 30
Difficulty:easy Bugzilla link:
Found in release: Pull request:https://github.com/theforeman/foreman/pull/1815
Story points-
Velocity based estimate-
Release1.6.1Release relationshipAuto

Description

In #3136, the "Clone host" page was changed to show the old hostname but no longer does. It should show the title "Clone host original.example.com" but instead just shows "Clone host".

The view (app/views/hosts/new.html.erb) relies on @clone_host in the controller's clone method being the original host, but it's now set to the new host object.


Related issues

Related to Foreman - Feature #3136: host cloning should auto-suggest a new IP address Closed 09/22/2013

Associated revisions

Revision 30534f9c
Added by Ori Rabin about 3 years ago

Fixes #7620: When cloning a host show old host name

Revision 106a8a85
Added by Ori Rabin about 3 years ago

Fixes #7620: When cloning a host show old host name

(cherry picked from commit 30534f9c5fb1d7f2dc2f650f1eaf0d0eff1ccbbb)

History

#1 Updated by Dominic Cleal about 3 years ago

  • Related to Feature #3136: host cloning should auto-suggest a new IP address added

#2 Updated by Ori Rabin about 3 years ago

  • Status changed from New to Assigned
  • Assigned To set to Ori Rabin

#3 Updated by Ori Rabin about 3 years ago

  • Target version set to Sprint 30

#4 Updated by The Foreman Bot about 3 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/1815 added

#5 Updated by Ori Rabin about 3 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#6 Updated by Daniel Lobato Garcia about 3 years ago

  • Release set to 1.6.1

Also available in: Atom PDF