Skip to content

Commit cb80aa3

Browse files
committed
Nit: update const name; reorder declarations
1 parent dfe8f3c commit cb80aa3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • src/bosh-director/lib/bosh/director/deployment_plan

src/bosh-director/lib/bosh/director/deployment_plan/instance.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ module Bosh::Director
55
module DeploymentPlan
66
# Represents a single Instance Group instance.
77
class Instance
8-
RESTART = 'restart'.freeze
98
RECREATE = 'recreate'.freeze
9+
RESTART = 'restart'.freeze
1010
STARTED = 'started'.freeze
1111

12-
VIRTUAL_STATE_TO_STATE = {
12+
VIRTUAL_STATE_TO_STATE_MAPPING = {
1313
RECREATE => STARTED,
1414
RESTART => STARTED
1515
}
@@ -304,7 +304,7 @@ def update_variable_set
304304
end
305305

306306
def state
307-
VIRTUAL_STATE_TO_STATE.fetch(virtual_state, virtual_state)
307+
VIRTUAL_STATE_TO_STATE_MAPPING.fetch(virtual_state, virtual_state)
308308
end
309309

310310
def virtual_state

0 commit comments

Comments
 (0)