knife-ec2 1.0.16 → 1.0.17

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: f9b8a13feb4e8b87fefb3a9947b00f0dcff705d782bd954d4e9fdd091c6ee357
4
- data.tar.gz: 7b3ba4b910199fcdd9d2e25575ca04b9c6b1d406bfc27b49788701f0b22061a4
3
+ metadata.gz: e33ffae143dd991452c5c1dc7fce4ec921053cae8072accf212d57acc3f964cf
4
+ data.tar.gz: 9a81e3780a4a27e79dded1ed55a7da645220847577fab770c91279485eed53d7
5
5
  SHA512:
6
- metadata.gz: 1de4480610006aa88fa9cea1843ede6c912d3d783489809622fb04c9542f109ce70ac65b862c0011eb6387ff58f29e4105f00ba069ec4a98775576fefb8b6479
7
- data.tar.gz: 27b185b90d50245d812d46c9976c5d80a2535fd25038f2e3b191ebda4775aff23ab2c4df5df2a2ddf9122bd1b9edc3e02345fa5a427e758003b5b66c9e146bcd
6
+ metadata.gz: 4d83c87ad3197f86932377a362e7edd615608f24cbd2a00935b1587810b39e1273bacd49ec7707ccac3c5b7e7fd25d77425acfd7b07c1077d7c43182245a7526
7
+ data.tar.gz: 5142010c2db7c748237c9d1dfcc9a8d21f27ca81ead0afa098742c3a1b248eef6d22d027f1140b02c4be0313356f0a862cf85268887ebb2aba6b6e36afd1465d
@@ -278,7 +278,6 @@ class Chef
278
278
  option :cpu_credits,
279
279
  long: "--cpu-credits CPU_CREDITS",
280
280
  description: "The credit option for CPU usage of the instance. Valid values are standard and unlimited. T3 instances launch as unlimited by default. T2 instances launch as standard by default.",
281
- default: "standard",
282
281
  in: %w{standard unlimited}
283
282
 
284
283
  def plugin_create_instance!
@@ -984,10 +983,12 @@ class Chef
984
983
 
985
984
  attributes[:instance_initiated_shutdown_behavior] = config_value(:instance_initiated_shutdown_behavior)
986
985
 
987
- attributes[:credit_specification] =
988
- {
989
- cpu_credits: config[:cpu_credits],
990
- }
986
+ if config[:cpu_credits]
987
+ attributes[:credit_specification] =
988
+ {
989
+ cpu_credits: config[:cpu_credits],
990
+ }
991
+ end
991
992
  attributes
992
993
  end
993
994
 
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Ec2
3
- VERSION = "1.0.16".freeze
3
+ VERSION = "1.0.17".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.16
4
+ version: 1.0.17
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-09-15 00:00:00.000000000 Z
11
+ date: 2019-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef