knife-ec2 2.0.0 → 2.0.3

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: ef05c55a30683b3d13f24ce894e045d99821f9ea7095e42f37e4b86c9afc902d
4
- data.tar.gz: 736e4a47597fa1b9658164d7ecffcde6b53d482bf5dec5ea4367d97e1daf21fe
3
+ metadata.gz: '0792e566da930105ef238d8d64cb2fe79501895dcace746aa1a255b3e9d4a7f5'
4
+ data.tar.gz: 9078a6bb126100a28800abc87cd20d0344b33cbe090303795f414a9523e427d3
5
5
  SHA512:
6
- metadata.gz: c7c690c5688b082d89603fbd1462d4eec4031c25478d87bed4980e610cd7d76724509f094bc09fd31f029eb3f44e64d604ea5383b0c034cd32f6a05737caca33
7
- data.tar.gz: 268877c15f34cbc1617a35dd093e1a27b57be169f1b843b20fa58e5768c9c6350bb5e5895b3d397efc2bc03ff445458a6febcc00d70b4ba5a9c967d53c9cf960
6
+ metadata.gz: 4992729a869dd890f29f7d1d52cf957a4faf4d806f295abd62e760e60e0f9cb2916984c5f06e93538e362e39b71db2b9b56e8f2778661b04dafc6949b681e75d
7
+ data.tar.gz: a9f75d6fd86635c9cd67dcd50fc52ed5aae503d8004e212f53fc9d87f0b7159936a4f274b996e56a829cf28e04758c08b34e555c63096412553646561ca6142f
@@ -27,7 +27,7 @@ class Chef
27
27
  # By default owner is aws-marketplace but you can specify following owner with the help of -o or --owner
28
28
  # * self => Displays the list of AMIs created by the user
29
29
  # * aws-marketplace => Displays all AMIs form trusted vendors like Ubuntu, Microsoft, SAP, Zend as well as many open source offering
30
- # * micosoft => Displays only Microsoft vendor AMIs
30
+ # * microsoft => Displays only Microsoft vendor AMIs
31
31
  #
32
32
  # == Platform
33
33
  # By default all platform AMI's will display but you can filter your response
@@ -27,7 +27,7 @@ class Chef
27
27
  banner "knife ec2 flavor list (options) [DEPRECATED]"
28
28
 
29
29
  def run
30
- ui.error("knife ec2 flavor list has been deprecated as this functionality is not provided by the AWS API the previous implementatin relied upon hardcoded values that were often incorrect. For an up to date list of instance types see https://www.ec2instances.info/")
30
+ ui.error("knife ec2 flavor list has been deprecated as this functionality is not provided by the AWS API the previous implementation relied upon hardcoded values that were often incorrect. For an up to date list of instance types see https://www.ec2instances.info/")
31
31
  exit 1
32
32
  end
33
33
  end
@@ -708,7 +708,7 @@ class Chef
708
708
 
709
709
  if winrm?
710
710
  reg = /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,40}$/
711
- unless config[:connection_password] =~ reg
711
+ unless config[:connection_password]&.match?(reg)
712
712
  ui.error("Complexity requirements are not met. Password length should be 8-40 characters and include: 1 uppercase, 1 lowercase, 1 digit, and 1 special character")
713
713
  exit 1
714
714
  end
@@ -1325,8 +1325,7 @@ class Chef
1325
1325
  require "openssl"
1326
1326
  private_key = OpenSSL::PKey::RSA.new(key)
1327
1327
  encrypted_password = Base64.decode64(encoded_password)
1328
- password = private_key.private_decrypt(encrypted_password)
1329
- password
1328
+ private_key.private_decrypt(encrypted_password)
1330
1329
  end
1331
1330
 
1332
1331
  def check_windows_password_available(server_id)
@@ -1347,7 +1346,7 @@ class Chef
1347
1346
  data = File.read(config[:ssh_identity_file])
1348
1347
  config[:connection_password] = decrypt_admin_password(response.password_data, data)
1349
1348
  else
1350
- print "\n#{ui.color("Fetchig instance details: \n", :magenta)}"
1349
+ print "\n#{ui.color("Fetching instance details: \n", :magenta)}"
1351
1350
  end
1352
1351
  else
1353
1352
  ui.error("Cannot find SSH Identity file, required to fetch dynamically generated password")
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Ec2
3
- VERSION = "2.0.0".freeze
3
+ VERSION = "2.0.3".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: 2.0.0
4
+ version: 2.0.3
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: 2020-05-29 00:00:00.000000000 Z
11
+ date: 2020-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef