knife-ec2 1.0.22 → 1.0.25

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: 1c062c757d30e2a439435f0bfc6fd30e5d0534f107b9e426d9c8cfeea733e383
4
- data.tar.gz: 5a8f574c5bd902b4ba8196f85347bcc0f2c0558ef754f1a76f0fcd8eaa3a1d62
3
+ metadata.gz: '090dfec07d3c033443e219dac5b1429c85f12df444d3fcb94df51d3d4dd43e50'
4
+ data.tar.gz: 8ba1490ac3c52e5f17044d20105ee4097f3b911c3e211d978f0ad3f77a84e6bf
5
5
  SHA512:
6
- metadata.gz: 897d4c54e779d65d599448d9262e74d4797d3e54a05aaae4028de4c9add6b38e7acffc68a06eff3179c961707170f91648ffb323fc8cfb90dc5b0042e6abaa85
7
- data.tar.gz: 632281b0f3c59d26809032a8c4107eca8ed379ef7efba90689c36ce62d2921f220fc26e014f4efb91cee2c8bc068b0e25b78434ccea9f7e6b983b450db886474
6
+ metadata.gz: 78232e205b095a2107b679a094ea7e9d2d6dc23c7b2e76379b62ae62592df5f84dd91ef7a4bbecf0cbae9f0ac44d03af2e5aaa304c86294d30ac5908b0a20f59
7
+ data.tar.gz: 76e4ad596e206ab19a8191bcfe82acfbe83c5af33187ae3ebff826982618b1bfa74bd874028cfbd82110c7dc0666755f3d83296946810ad135c96b0205c949e9
@@ -31,6 +31,7 @@ class Chef
31
31
  require "tempfile"
32
32
  require "uri"
33
33
  require "net/ssh"
34
+ require "net/ssh/gateway"
34
35
  Chef::Knife::Bootstrap.load_deps
35
36
  end
36
37
 
@@ -580,7 +581,7 @@ class Chef
580
581
  end
581
582
 
582
583
  def plugin_validate_options!
583
- if Chef::Config[:knife].keys.include? :aws_ssh_key_id
584
+ if Chef::Config[:knife].key?(:aws_ssh_key_id)
584
585
  Chef::Config[:knife][:ssh_key_name] = Chef::Config[:knife][:aws_ssh_key_id] unless Chef::Config[:knife][:ssh_key_name]
585
586
  Chef::Config[:knife].delete(:aws_ssh_key_id)
586
587
  ui.warn("Use of aws_ssh_key_id option in knife.rb/config.rb config is deprecated, use ssh_key_name option instead.")
@@ -1177,7 +1178,7 @@ class Chef
1177
1178
  end
1178
1179
 
1179
1180
  def create_key_pair
1180
- key_name = "#{config[:connection_user]}-#{SecureRandom.hex(10)}"
1181
+ key_name = "#{config[:connection_user].delete(".\\")}-#{SecureRandom.hex(10)}"
1181
1182
  key_pair = ec2_connection.create_key_pair({
1182
1183
  key_name: key_name,
1183
1184
  })
@@ -1448,7 +1449,7 @@ class Chef
1448
1449
  parse_aws_tags.map { |t| key, val = t.split("="); ht[key] = val } unless parse_aws_tags.nil?
1449
1450
 
1450
1451
  # Always set the Name tag
1451
- unless ht.keys.include? "Name"
1452
+ unless ht.key?("Name")
1452
1453
  if config_value(:chef_node_name)
1453
1454
  ht["Name"] = evaluate_node_name(config_value(:chef_node_name))
1454
1455
  else
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Ec2
3
- VERSION = "1.0.22".freeze
3
+ VERSION = "1.0.25".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.22
4
+ version: 1.0.25
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-21 00:00:00.000000000 Z
11
+ date: 2019-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef