Skip to content

Commit

Permalink
replace 'a alloc' with 'an alloc' where appropriate (#11792)
Browse files Browse the repository at this point in the history
  • Loading branch information
conorevans authored Jan 10, 2022
1 parent 43edd0e commit 31978a0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -1385,7 +1385,7 @@ FEATURES:
* core: Add `nomad alloc stop` command to reschedule allocs [[GH-5512](https://github.com/hashicorp/nomad/pull/5512)]
* core: Add `nomad alloc signal` command to signal allocs and tasks [[GH-5515](https://github.com/hashicorp/nomad/pull/5515)]
* core: Add `nomad alloc restart` command to restart allocs and tasks [[GH-5502](https://github.com/hashicorp/nomad/pull/5502)]
* code: Add `nomad alloc exec` command for debugging and running commands in a alloc [[GH-5632](https://github.com/hashicorp/nomad/pull/5632)]
* code: Add `nomad alloc exec` command for debugging and running commands in an alloc [[GH-5632](https://github.com/hashicorp/nomad/pull/5632)]
* core/enterprise: Preemption capabilities for batch and service jobs
* ui: Preemption reporting everywhere where allocations are shown and as part of the plan step of job submit [[GH-5594](https://github.com/hashicorp/nomad/issues/5594)]
* ui: Ability to search clients list by class, status, datacenter, or eligibility flags [[GH-5318](https://github.com/hashicorp/nomad/issues/5318)]
Expand Down
2 changes: 1 addition & 1 deletion client/allocdir/input/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type Client interface {
AllocStateHandler
}

// AllocStateHandler exposes a handler to be called when a allocation's state changes
// AllocStateHandler exposes a handler to be called when an allocation's state changes
type AllocStateHandler interface {
// AllocStateUpdated is used to emit an updated allocation. This allocation
// is stripped to only include client settable fields.
Expand Down
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ func (c *Client) restoreState() error {
// now. If allocs should be run, they will be started when the client
// gets allocs from servers.
if !c.hasLocalState(alloc) {
c.logger.Warn("found a alloc without any local state, skipping restore", "alloc_id", alloc.ID)
c.logger.Warn("found an alloc without any local state, skipping restore", "alloc_id", alloc.ID)
continue
}

Expand Down
2 changes: 1 addition & 1 deletion client/interfaces/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type Client interface {
AllocStateHandler
}

// AllocStateHandler exposes a handler to be called when a allocation's state changes
// AllocStateHandler exposes a handler to be called when an allocation's state changes
type AllocStateHandler interface {
// AllocStateUpdated is used to emit an updated allocation. This allocation
// is stripped to only include client settable fields.
Expand Down
2 changes: 1 addition & 1 deletion nomad/job_endpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6788,7 +6788,7 @@ func TestJobEndpoint_Dispatch_JobChildrenSummary(t *testing.T) {
return job.Status
}

// Let's start a alloc for the dispatch job and walk through states
// Let's start an alloc for the dispatch job and walk through states
// Note that job summary reports 1 running even when alloc is pending!
nextIdx++
alloc := mock.Alloc()
Expand Down
2 changes: 1 addition & 1 deletion nomad/structs/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -4736,7 +4736,7 @@ type TaskGroupSummary struct {

const (
// Checks uses any registered health check state in combination with task
// states to determine if a allocation is healthy.
// states to determine if an allocation is healthy.
UpdateStrategyHealthCheck_Checks = "checks"

// TaskStates uses the task states of an allocation to determine if the
Expand Down

0 comments on commit 31978a0

Please sign in to comment.