Fix healthcheck port on clone (rancherio/rancher#1159)

This commit is contained in:
Vincent Fiduccia 2015-06-11 15:22:35 -07:00
parent 64e09c190b
commit 7c38684f35
2 changed files with 6 additions and 1 deletions

View File

@ -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);

View File

@ -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);