mirror of https://github.com/rancher/ui.git
Fix healthcheck port on clone (rancherio/rancher#1159)
This commit is contained in:
parent
64e09c190b
commit
7c38684f35
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue