Feature #132
clone an existing host
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
Full update to the Apache 2.0 License.
Closes #132
Forgot to update the licence in the Readme file.
Refs #132
History
#1
Updated by Ohad Levy over 12 years ago
- Target version set to 0.1-4
#2
Updated by Ohad Levy over 12 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 over 12 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 12 years ago
Rebased against develop and added some bells and whistles.
#5
Updated by Paul Kelly about 12 years ago
rebased against develop and ensured that all tests pass
#6
Updated by Paul Kelly about 12 years ago
- % Done changed from 0 to 100
Applied in changeset dad78fb69c590f060354aa4fd77e77dfbdf007b4.
#7
Updated by Ohad Levy about 12 years ago
- Status changed from Ready For Testing to Closed
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 :)