knife-ec2 1.0.25 → 1.0.26

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '090dfec07d3c033443e219dac5b1429c85f12df444d3fcb94df51d3d4dd43e50'
4
- data.tar.gz: 8ba1490ac3c52e5f17044d20105ee4097f3b911c3e211d978f0ad3f77a84e6bf
3
+ metadata.gz: ada420d34d94212017c8efa482439abcdb0de539fad09552eb18143105f7b01a
4
+ data.tar.gz: 52cf7f8bd1b23fc63efe61375f3d45730568db2dcb94f90723bb0ecaa34efe6e
5
5
  SHA512:
6
- metadata.gz: 78232e205b095a2107b679a094ea7e9d2d6dc23c7b2e76379b62ae62592df5f84dd91ef7a4bbecf0cbae9f0ac44d03af2e5aaa304c86294d30ac5908b0a20f59
7
- data.tar.gz: 76e4ad596e206ab19a8191bcfe82acfbe83c5af33187ae3ebff826982618b1bfa74bd874028cfbd82110c7dc0666755f3d83296946810ad135c96b0205c949e9
6
+ metadata.gz: 9de9b4060e313a5ae678fb2a6a9b31295a4a3c1f6d55cc2d68167be9aef7644d24c796de8813f7d02321fd7dea9f1e9f57c4729ee0cff153fc428a707707c692
7
+ data.tar.gz: 375c70b99a4ad7e860f919cb5f89c2f87f68ab04a7fdc7fe63d2e27b57040a75fba71b6fae11e15e37a79e4f0f9f4b58a44530d316c520b931172bb10d0282f6
@@ -392,9 +392,6 @@ class Chef
392
392
  Chef::Config[:validation_key] = validation_key_path
393
393
  end
394
394
 
395
- config[:connection_protocol] ||= connection_protocol_ec2
396
- config[:connection_port] ||= connection_port
397
-
398
395
  # Check if Server is Windows or Linux
399
396
  if is_image_windows?
400
397
  if winrm?
@@ -576,6 +573,13 @@ class Chef
576
573
  !!config_value(:subnet_id)
577
574
  end
578
575
 
576
+ # When options connection_protocol and connection_port are not provided
577
+ # It will set as default
578
+ def plugin_setup!
579
+ config[:connection_protocol] ||= connection_protocol_ec2
580
+ config[:connection_port] ||= connection_port
581
+ end
582
+
579
583
  def validate_name_args!
580
584
  # We don't know the name of our instance yet
581
585
  end
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Ec2
3
- VERSION = "1.0.25".freeze
3
+ VERSION = "1.0.26".freeze
4
4
  MAJOR, MINOR, TINY = VERSION.split(".")
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-ec2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.25
4
+ version: 1.0.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chef Software, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-23 00:00:00.000000000 Z
11
+ date: 2019-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef