foreman_salt 7.0.2 → 7.0.3

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
  SHA1:
3
- metadata.gz: d2936d97abe52cb693b707b70efe7202cc88e5d7
4
- data.tar.gz: d89d2744669bf971479183f366704e7d358f0fe4
3
+ metadata.gz: 5f1b578f746a23b4baddb585b865e87b6db90232
4
+ data.tar.gz: 2a177763f30f68bc12ba770e180a562f5abda4e1
5
5
  SHA512:
6
- metadata.gz: b7bce3bc44a5aade9c39f8fab76eb9d284f0aa14c518f2dde18e72c1b79939d52dfea1b1f98a5e7051c43ef4bd9732ee704a07b0caeb35dd28fd7cfd4ba05908
7
- data.tar.gz: 2d89a9a3d209cd6bf6e0536a21e69ccbbf6ee1104f4e65d64aaa9e0c9f9c04a49ffc357759738c143391b656be4bda13b78398464f4c2113231677261b152799
6
+ metadata.gz: c9c99556833b1a240f5594398862fcf59413eda02bdcf53b54c639309fa25b667839f7fbf112e2365ee92f5b956a96c2441edcfe997d7cc6f1e0d85abbfe7c28
7
+ data.tar.gz: 7604ba5ee0dd35f4505ff74e70bb24fadb6887facf87d7f30c2d9781d34030d8976a0c2ff037cceb3546bc20934b2975b65b4cac9a0b64e5309a193539287a1b
@@ -20,7 +20,7 @@ function update_salt_states(element) {
20
20
  return;
21
21
  }
22
22
 
23
- foreman.tools.showSpinner();
23
+ tfm.tools.showSpinner();
24
24
  $.ajax({
25
25
  type: 'put',
26
26
  url: url,
@@ -31,7 +31,7 @@ function update_salt_states(element) {
31
31
  multiSelectOnLoad();
32
32
  },
33
33
  complete: function() {
34
- foreman.tools.hideSpinner();
34
+ tfm.tools.hideSpinner();
35
35
  }
36
36
  });
37
37
  }
@@ -73,9 +73,9 @@ module ForemanSalt
73
73
  @minion = @minion.becomes(Host::Managed)
74
74
  @minion.type = 'Host::Managed'
75
75
  end
76
- @minion.attributes = params[:host]
76
+ @minion.attributes = host_params(:host)
77
77
  else
78
- @minion ||= Host::Managed.new(params[:host])
78
+ @minion ||= Host::Managed.new(host_params(:host))
79
79
  end
80
80
 
81
81
  @obj = @minion
@@ -11,8 +11,8 @@ module ForemanSalt
11
11
  belongs_to :salt_environment, :class_name => 'ForemanSalt::SaltEnvironment'
12
12
 
13
13
  alias_method_chain :params, :salt_proxy
14
- alias_method_chain :set_hostgroup_defaults, :salt_proxy
15
14
  alias_method_chain :smart_proxy_ids, :salt_proxy
15
+ alias_method_chain :inherited_attributes, :salt
16
16
  alias_method_chain :configuration?, :salt
17
17
 
18
18
  scoped_search :in => :salt_modules, :on => :name, :complete_value => true, :rename => :salt_state
@@ -58,10 +58,8 @@ module ForemanSalt
58
58
  false
59
59
  end
60
60
 
61
- def set_hostgroup_defaults_with_salt_proxy
62
- return unless hostgroup
63
- assign_hostgroup_attributes(%w(salt_proxy_id salt_environment_id))
64
- set_hostgroup_defaults_without_salt_proxy
61
+ def inherited_attributes_with_salt
62
+ inherited_attributes_without_salt + %w(salt_proxy_id salt_environment_id)
65
63
  end
66
64
 
67
65
  def smart_proxy_ids_with_salt_proxy
@@ -1,3 +1,3 @@
1
1
  module ForemanSalt
2
- VERSION = '7.0.2'
2
+ VERSION = '7.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_salt
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.2
4
+ version: 7.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Benjamin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-23 00:00:00.000000000 Z
11
+ date: 2016-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface
@@ -183,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  version: '0'
184
184
  requirements: []
185
185
  rubyforge_project:
186
- rubygems_version: 2.5.1
186
+ rubygems_version: 2.5.2
187
187
  signing_key:
188
188
  specification_version: 4
189
189
  summary: Foreman Plug-in for Salt