summaryrefslogtreecommitdiff
path: root/lib/chef/knife/core/windows_bootstrap_context.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/knife/core/windows_bootstrap_context.rb')
-rw-r--r--lib/chef/knife/core/windows_bootstrap_context.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/chef/knife/core/windows_bootstrap_context.rb b/lib/chef/knife/core/windows_bootstrap_context.rb
index a533e61ca2..d00644f262 100644
--- a/lib/chef/knife/core/windows_bootstrap_context.rb
+++ b/lib/chef/knife/core/windows_bootstrap_context.rb
@@ -35,14 +35,7 @@ class Chef
@run_list = run_list
@chef_config = chef_config
@secret = secret
- # Compatibility with Chef 12 and Chef 11 versions
- begin
- # Pass along the secret parameter for Chef 12
- super(config, run_list, chef_config, secret)
- rescue ArgumentError
- # The Chef 11 base class only has parameters for initialize
- super(config, run_list, chef_config)
- end
+ super(config, run_list, chef_config, secret)
end
def validation_key