Project

General

Profile

Feature #132

clone an existing host

Added by Matt Moran over 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Host creation
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Would be nice to be able to clone an existing host to a new host. The cloned host would have hostname, mac, ip etc. blank but would clone things like partition table, group, root password etc.

Associated revisions

Revision dad78fb6 (diff)
Added by Paul Kelly about 9 years ago

Fixes #132 - Added a clone operation

This clones the AR, attaches clones of the
originals host_parameters and then renders the "new" action, ready for editing.

The host_parameters must not use validate_presence of :host_id when using nested attributes.
Created a hidden :nested attribute to the form to flag this behaviour

Also converted the host _form to use a table so that error boxes around the attributes look correct.
Unmodified attributes in the clone are also highlighted ready for editing

Ohad has committed ontop of the original patch, but the it still under
Paul name so he could be blamed for all :)

Revision 76766ddc (diff)
Added by Trevor Vaughan almost 8 years ago

Full update to the Apache 2.0 License.

Closes #132

Revision b3794784 (diff)
Added by Trevor Vaughan almost 8 years ago

Forgot to update the licence in the Readme file.

Refs #132

History

#1 Updated by Ohad Levy over 9 years ago

  • Target version set to 0.1-4

#2 Updated by Ohad Levy about 9 years ago

  • Target version changed from 0.1-4 to 0.1-5

This will be really easy once we get rid of ActiveScaffold (e.g. in the NO_AS feature branch).

I'm targeting this feature for the next release

#3 Updated by Paul Kelly about 9 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Paul Kelly

There is an implementation for this on branch feature/132 on my github

#4 Updated by Paul Kelly about 9 years ago

Rebased against develop and added some bells and whistles.

#5 Updated by Paul Kelly about 9 years ago

rebased against develop and ensured that all tests pass

#6 Updated by Paul Kelly about 9 years ago

  • % Done changed from 0 to 100

#7 Updated by Ohad Levy about 9 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF