462
461
// into the database, based on the given template. Only the constraints are
463
462
// taken from the template.
464
463
func (st *State) insertNewMachineOps(mdoc *machineDoc, template MachineTemplate) (prereqOps []txn.Op, machineOp txn.Op, err error) {
465
465
machineStatusDoc := statusDoc{
467
467
ModelUUID: st.ModelUUID(),
471
470
instanceStatusDoc := statusDoc{
473
472
ModelUUID: st.ModelUUID(),
477
476
prereqOps, machineOp = st.baseNewMachineOps(