train 1.4.10 → 1.4.11

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: 890a987a41248ad9564b6a4d321f94e86e1e60021691747f26652238c2d4fdea
4
- data.tar.gz: 8e17748478727833fe58d85f8608ab255d6367d996f474ed4b230c522ab3f1b7
3
+ metadata.gz: 6286b3582330ddddd3d2eefb05547a5a8762bb8cc213f42c61a7ce50a053df98
4
+ data.tar.gz: b9bcba134f4365243958c5f2456512f72c59fc769d43516ac22ef298bb9789e2
5
5
  SHA512:
6
- metadata.gz: daa328bbe03443af4b13fe0d1f48d09c4669af0f70005cef642d95dc92dcb5097583543ae656ba0e8b805a9b301aaa93f322d150388ab0e4d7ebf098e5fecf60
7
- data.tar.gz: 307f7ac05a516b78babebe068e3c86cbb616215ae391e3487bb9239246671c33d3b41115c483e14343c7e2e7db9b4bee8dedb3815149d353398290eaf979780b
6
+ metadata.gz: ecfa278786d83430a228b1a8a67cb187957147e87617f93583c85867177ccdd23a14417f32fb659cbc8470752d50e8a11a65b32b5226c7fc0ef8d0812e509e24
7
+ data.tar.gz: a3a08fd6a68c9722f6daa5bc7840a2ebe7dee6e01d3826170c597426a9460a4258b4d1d179bcd32a93a575578c113c20be631c43d07b378f3a05eaaa2167718b
@@ -1,18 +1,24 @@
1
- <!-- latest_release 1.4.10 -->
2
- ## [v1.4.10](https://github.com/chef/train/tree/v1.4.10) (2018-05-17)
1
+ <!-- latest_release 1.4.11 -->
2
+ ## [v1.4.11](https://github.com/chef/train/tree/v1.4.11) (2018-05-17)
3
3
 
4
4
  #### Merged Pull Requests
5
- - support sudo passwords for cisco [#301](https://github.com/chef/train/pull/301) ([arlimus](https://github.com/arlimus))
5
+ - Add required env for azure shell msi headers [#302](https://github.com/chef/train/pull/302) ([jquick](https://github.com/jquick))
6
6
  <!-- latest_release -->
7
7
 
8
- <!-- release_rollup since=1.4.9 -->
9
- ### Changes since 1.4.9 release
8
+ <!-- release_rollup since=1.4.10 -->
9
+ ### Changes since 1.4.10 release
10
10
 
11
11
  #### Merged Pull Requests
12
- - support sudo passwords for cisco [#301](https://github.com/chef/train/pull/301) ([arlimus](https://github.com/arlimus)) <!-- 1.4.10 -->
12
+ - Add required env for azure shell msi headers [#302](https://github.com/chef/train/pull/302) ([jquick](https://github.com/jquick)) <!-- 1.4.11 -->
13
13
  <!-- release_rollup -->
14
14
 
15
15
  <!-- latest_stable_release -->
16
+ ## [v1.4.10](https://github.com/chef/train/tree/v1.4.10) (2018-05-17)
17
+
18
+ #### Merged Pull Requests
19
+ - support sudo passwords for cisco [#301](https://github.com/chef/train/pull/301) ([arlimus](https://github.com/arlimus))
20
+ <!-- latest_stable_release -->
21
+
16
22
  ## [v1.4.9](https://github.com/chef/train/tree/v1.4.9) (2018-05-16)
17
23
 
18
24
  #### Bug Fixes
@@ -23,7 +29,6 @@
23
29
  - Initial import of transport for GCP. [#283](https://github.com/chef/train/pull/283) ([skpaterson](https://github.com/skpaterson))
24
30
  - Change Cisco IOS transport log level to INFO [#298](https://github.com/chef/train/pull/298) ([jerryaldrichiii](https://github.com/jerryaldrichiii))
25
31
  - Unpin google-protobuf now that we are building it as a gem [#300](https://github.com/chef/train/pull/300) ([scotthain](https://github.com/scotthain))
26
- <!-- latest_stable_release -->
27
32
 
28
33
  ## [v1.4.4](https://github.com/chef/train/tree/v1.4.4) (2018-05-02)
29
34
 
@@ -23,7 +23,7 @@ module Train::Transports
23
23
  @connection ||= Connection.new(@options)
24
24
  end
25
25
 
26
- class Connection < BaseConnection
26
+ class Connection < BaseConnection # rubocop:disable Metrics/ClassLength
27
27
  attr_reader :options
28
28
 
29
29
  def initialize(options)
@@ -62,7 +62,8 @@ module Train::Transports
62
62
 
63
63
  def connect
64
64
  if @options[:client_id].nil? && @options[:client_secret].nil? && port_open?(@options[:msi_port])
65
- # try using MSI connection
65
+ # this needs set for azure cloud to authenticate
66
+ ENV['MSI_VM'] = 'true'
66
67
  provider = ::MsRestAzure::MSITokenProvider.new(@options[:msi_port])
67
68
  else
68
69
  provider = ::MsRestAzure::ApplicationTokenProvider.new(
@@ -3,5 +3,5 @@
3
3
  # Author:: Dominik Richter (<dominik.richter@gmail.com>)
4
4
 
5
5
  module Train
6
- VERSION = '1.4.10'.freeze
6
+ VERSION = '1.4.11'.freeze
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: train
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.10
4
+ version: 1.4.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominik Richter