bolt 1.27.0 → 1.27.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of bolt might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab9cf181769b6ca24ef2b29fc8179d3bf53dec09d017c4e611a2d164d4674dfb
4
- data.tar.gz: ff29ec62872a9f46f9ab36a50369255ad0ab2de350bf7867719e4663ba623978
3
+ metadata.gz: 479e933992d2ff527a0c863ed9b4e2d6f94f5726e1c1ef910e3de3e4a92f97d3
4
+ data.tar.gz: 19c0c435262e63acb8d94a4adc59bb1613fe126f2e276c66cca392a6074358c0
5
5
  SHA512:
6
- metadata.gz: 4013b9347614f3c6959ed0c69ad9a6d3ed61e8cc557198b12e23bdaadc44b297724872b71fe55cdb9e43b37d7c7ccad9df7935ae52f926d2f83c7776d02a4949
7
- data.tar.gz: 6190e0d6bc138a4a9da01d37d2771d089587da9279f14673bb22d45b3f87f27e621e281dfb2a0f8e67a38bb2d70342928952c500875febb76f7b8800750fd434
6
+ metadata.gz: a44e8201beb5d720068b0217191495141a34e302748358117d308fd8e6bd4906a05f53e653982a08686d1c2b78c673caec5ddecd9cc5d9b60447a594b299dbc2
7
+ data.tar.gz: 42f6ceb89094cf0aac648133b37d477adc8bfdff54c5941a6c8228793d980e4106959e1179f548f3aea296fbc35f27307fdeb874736b5cf3c76fc3ce23b818ae
@@ -88,19 +88,21 @@ module Bolt
88
88
 
89
89
  options[:object] = remaining.shift
90
90
 
91
- task_options, remaining = remaining.partition { |s| s =~ /.+=/ }
92
- if options[:task_options]
93
- unless task_options.empty?
94
- raise Bolt::CLIError,
95
- "Parameters must be specified through either the --params " \
96
- "option or param=value pairs, not both"
91
+ # Only parse task_options for task or plan
92
+ if %w[task plan].include?(options[:subcommand])
93
+ task_options, remaining = remaining.partition { |s| s =~ /.+=/ }
94
+ if options[:task_options]
95
+ unless task_options.empty?
96
+ raise Bolt::CLIError,
97
+ "Parameters must be specified through either the --params " \
98
+ "option or param=value pairs, not both"
99
+ end
100
+ options[:params_parsed] = true
101
+ else
102
+ options[:params_parsed] = false
103
+ options[:task_options] = Hash[task_options.map { |a| a.split('=', 2) }]
97
104
  end
98
- options[:params_parsed] = true
99
- else
100
- options[:params_parsed] = false
101
- options[:task_options] = Hash[task_options.map { |a| a.split('=', 2) }]
102
105
  end
103
-
104
106
  options[:leftovers] = remaining
105
107
 
106
108
  validate(options)
@@ -111,7 +111,7 @@ module Bolt
111
111
  target_facts: {},
112
112
  target_features: {}
113
113
  },
114
- config: { transports: {} }
114
+ config: @config.transport_data_get
115
115
  }
116
116
  end
117
117
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bolt
4
- VERSION = '1.27.0'
4
+ VERSION = '1.27.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bolt
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.27.0
4
+ version: 1.27.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-07-24 00:00:00.000000000 Z
11
+ date: 2019-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable