foreman_remote_execution 1.6.1 → 1.6.2

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: 7e884723b111f87af0bb02b6eb789e3d246edd949afb503c6abda18a3e6a6106
4
- data.tar.gz: 9b33580cc044c35b9a44321d9889364f6e8871cbb1d5a20a14fc03e652965dbc
3
+ metadata.gz: c69660ec871252ef2e050387571203f0bc88304fa95178ef4c8483f728fd2324
4
+ data.tar.gz: 42aa074014895c236544f7ae4500214df93cb28f3590faa9a31fd3ac166746aa
5
5
  SHA512:
6
- metadata.gz: '096f0427feb1f59bcb7eb2759050a6bc420cf7961235b8345791e59a55890da359e78e8d4543a9bd1eab20bfb077450efbb6ad62fcad2149ddfa95b48e6761e9'
7
- data.tar.gz: 2c2029fe3abe58f9763609ce6829f8c81afa6755a179cd73408dc4ff790e14166aeaa8d890c872301623218b9773ca44bc0499236134e82942fe58bc37b6ba1b
6
+ metadata.gz: b207852afa534924b6a029b756492ebb7543ec39064e010a8c66bfd1ab68cd9ff53911bd437736f53308f78b7d55cbee73413e6c267ecbdf14777d78b7380a3c
7
+ data.tar.gz: 66e6b7ed2f4780c3b33b468691c90ace64fe3cc1f62fad6446c039c119fa7d8193cd6b15cf6566a73c48c90c0ed4199d26eb66190ff3383ccacd5db86fd809df
@@ -30,7 +30,7 @@ module Api
30
30
  param :input_type, TemplateInput::TYPES.keys.map(&:to_s), :required => true, :desc => N_('Input type')
31
31
  param :fact_name, String, :required => false, :desc => N_('Fact name, used when input type is fact')
32
32
  param :variable_name, String, :required => false, :desc => N_('Variable name, used when input type is variable')
33
- param :puppet_parameter_class, String, :required => false, :desc => N_('Puppet class name, used when input type is puppet_parameter')
33
+ param :puppet_class_name, String, :required => false, :desc => N_('Puppet class name, used when input type is puppet_parameter')
34
34
  param :puppet_parameter_name, String, :required => false, :desc => N_('Puppet parameter name, used when input type is puppet_parameter')
35
35
  param :options, Array, :required => false, :desc => N_('Selectable values for user inputs')
36
36
  end
@@ -23,8 +23,9 @@ class RemoteExecutionFeature < ApplicationRecord
23
23
  self.find_by(label: label) || raise(::Foreman::Exception.new(N_('Unknown remote execution feature %s'), label))
24
24
  end
25
25
 
26
+ # rubocop:disable Metrics/PerceivedComplexity
26
27
  def self.register(label, name, options = {})
27
- return false unless RemoteExecutionFeature.table_exists?
28
+ return false if Foreman.in_setup_db_rake? || !RemoteExecutionFeature.table_exists?
28
29
  options.assert_valid_keys(*VALID_OPTIONS)
29
30
  options[:host_action_button] = false unless options.key?(:host_action_button)
30
31
 
@@ -54,4 +55,5 @@ class RemoteExecutionFeature < ApplicationRecord
54
55
  return feature
55
56
  end
56
57
  end
58
+ # rubocop:enable Metrics/PerceivedComplexity
57
59
  end
@@ -1,3 +1,3 @@
1
1
  module ForemanRemoteExecution
2
- VERSION = '1.6.1'.freeze
2
+ VERSION = '1.6.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_remote_execution
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Foreman Remote Execution team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-14 00:00:00.000000000 Z
11
+ date: 2018-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface