We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfe8f3c commit cb80aa3Copy full SHA for cb80aa3
1 file changed
src/bosh-director/lib/bosh/director/deployment_plan/instance.rb
@@ -5,11 +5,11 @@ module Bosh::Director
5
module DeploymentPlan
6
# Represents a single Instance Group instance.
7
class Instance
8
- RESTART = 'restart'.freeze
9
RECREATE = 'recreate'.freeze
+ RESTART = 'restart'.freeze
10
STARTED = 'started'.freeze
11
12
- VIRTUAL_STATE_TO_STATE = {
+ VIRTUAL_STATE_TO_STATE_MAPPING = {
13
RECREATE => STARTED,
14
RESTART => STARTED
15
}
@@ -304,7 +304,7 @@ def update_variable_set
304
end
305
306
def state
307
- VIRTUAL_STATE_TO_STATE.fetch(virtual_state, virtual_state)
+ VIRTUAL_STATE_TO_STATE_MAPPING.fetch(virtual_state, virtual_state)
308
309
310
def virtual_state
0 commit comments