diff --git a/app/containers/new/route.js b/app/containers/new/route.js index 39dada7b1..fcebbb95e 100644 --- a/app/containers/new/route.js +++ b/app/containers/new/route.js @@ -61,6 +61,9 @@ export default Ember.Route.extend({ }; } + // The type isn't set on an existing one + healthCheckData.type = 'instanceHealthCheck'; + var healthCheck = store.createRecord(healthCheckData); var instance = store.createRecord(data); instance.set('healthCheck', healthCheck); diff --git a/app/service/new/route.js b/app/service/new/route.js index 468405161..527a385a3 100644 --- a/app/service/new/route.js +++ b/app/service/new/route.js @@ -72,7 +72,6 @@ export default Ember.Route.extend({ if ( !healthCheckData ) { healthCheckData = { - type: 'instanceHealthCheck', interval: 2000, responseTimeout: 2000, healthyThreshold: 2, @@ -81,6 +80,9 @@ export default Ember.Route.extend({ }; } + // The type isn't set on an existing one + healthCheckData.type = 'instanceHealthCheck'; + var instance = this.get('store').createRecord(instanceData); var service = store.createRecord(serviceData);