From be50fe625499f860291b33fe7eb52a598572923b Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Fri, 23 Oct 2015 09:56:48 -0700 Subject: [PATCH] Fix markdown and log messages --- scheduler/feasible.go | 6 +++--- website/source/docs/jobspec/index.html.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scheduler/feasible.go b/scheduler/feasible.go index 977fa034c..7a96b6644 100644 --- a/scheduler/feasible.go +++ b/scheduler/feasible.go @@ -201,12 +201,12 @@ func (iter *DynamicConstraintIterator) hasDistinctHostsConstraint(constraints [] func (iter *DynamicConstraintIterator) Next() *structs.Node { if iter.job == nil { - iter.ctx.Logger().Printf("[ERR] sched.dynamic-constraint: job not set") + iter.ctx.Logger().Printf("[ERR] scheduler.dynamic-constraint: job not set") return nil } if iter.tg == nil { - iter.ctx.Logger().Printf("[ERR] sched.dynamic-constraint: task group not set") + iter.ctx.Logger().Printf("[ERR] scheduler.dynamic-constraint: task group not set") return nil } @@ -235,7 +235,7 @@ func (iter *DynamicConstraintIterator) satisfiesDistinctHosts(option *structs.No proposed, err := iter.ctx.ProposedAllocs(option.ID) if err != nil { iter.ctx.Logger().Printf( - "[ERR] sched.dynamic-constraint: failed to get proposed allocations: %v", err) + "[ERR] scheduler.dynamic-constraint: failed to get proposed allocations: %v", err) return false } diff --git a/website/source/docs/jobspec/index.html.md b/website/source/docs/jobspec/index.html.md index 3084b3b55..1cde52456 100644 --- a/website/source/docs/jobspec/index.html.md +++ b/website/source/docs/jobspec/index.html.md @@ -240,7 +240,7 @@ The `constraint` object supports the following keys: * `distinctHosts` - `distinctHosts` accepts a boolean `true`. The default is `false`. - When `distinctHosts is `true` at the Job level, each instance of all Task + When `distinctHosts` is `true` at the Job level, each instance of all Task Groups specified in the job is placed on a separate host. When `distinctHosts` is `true` at the Task Group level with count > 1, each