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 +4 -4
- data/lib/chef/knife/ec2_server_create.rb +6 -5
- data/lib/knife-ec2/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e33ffae143dd991452c5c1dc7fce4ec921053cae8072accf212d57acc3f964cf
|
4
|
+
data.tar.gz: 9a81e3780a4a27e79dded1ed55a7da645220847577fab770c91279485eed53d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
988
|
-
|
989
|
-
|
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
|
|
data/lib/knife-ec2/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef
|