Skip to content

Commit

Permalink
correct rancher 1.0 urls
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelitski committed Aug 10, 2016
1 parent 466bd51 commit 2e562aa
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/monitor.es6
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,16 @@ export default class ServiceStateMonitor {

notifyNonActiveState(oldState, newState) {
for (let target of this._targets) {
target.notify(`service ${padRight(this.name, 15)} become ${newState}(${this.service.state})
service: ${this._rancher.buildUrl(`/apps/${this.service.environmentId}/services/${this.service.id}/containers`)}
stack: ${this._rancher.buildUrl(`/apps/${this.service.environmentId}`)}
let {
state,
name,
accountId: envId,
environmentId: stackId,
id: serviceId,
} = this.service;
target.notify(`service ${padRight(name, 15)} become ${newState}(${state})
service: ${this._rancher.buildUrl(`/env/${envId}/apps/stacks/${stackId}/services/${serviceId}/containers`)}
stack: ${this._rancher.buildUrl(`/env/${envId}/apps/stacks/${stackId}`)}
`)
}
}
Expand Down

0 comments on commit 2e562aa

Please sign in to comment.