foreman_ansible 2.2.8 → 2.2.9

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: 4a31f99dd35a01e8ffde528ead14c34dfb92dfae
4
- data.tar.gz: e6536da314ad7d16bf34fc5c7dd0ceae673a9e6f
3
+ metadata.gz: 6907d2240ace96c12a0577d79529ffb2f29faa23
4
+ data.tar.gz: e7112ea75dc14ccf063ad0541b8a029025868d08
5
5
  SHA512:
6
- metadata.gz: 94714e6505e786260ccbe40e50cb98e1888fc1a883df96e95cd142987fb18db4d9ce57fbbdf0d6536407ff87041185052f5634d0e23874e23d1e0d077427ce2b
7
- data.tar.gz: 7e2d13ba5f28eb248614e26395c5619a7bac6f2c5f34da071718897738b47f5600fc1c4c7279b527aa52d5b2d54ab4154dd3589c835dcfe7543d4d604ee01835
6
+ metadata.gz: 6dc319a927f8fc368090620ad12ce65424742c2ca91f93b58d6a7df4e9cd832d032404ebb97a0d94ca96f7b475d21e406ed18efa7280229978bf63e214b24602
7
+ data.tar.gz: d47d5cd9481bcfb982d9e6de04d159bdcfaaa58b6fa3e73c620669785a3a395fd482c1f6d6419dce8f944aaf0feaf120201cabeb20fed754123a17b7976947e6
@@ -12,13 +12,13 @@ module ForemanAnsible
12
12
  end
13
13
 
14
14
  def create_new_roles(changes)
15
- changes.each_value do |new_role|
15
+ changes.each_pair do |_, new_role|
16
16
  ::AnsibleRole.create(JSON.parse(new_role))
17
17
  end
18
18
  end
19
19
 
20
20
  def delete_old_roles(changes)
21
- changes.each_value do |old_role|
21
+ changes.each_pair do |_, old_role|
22
22
  ::AnsibleRole.find(JSON.parse(old_role)['id']).destroy
23
23
  end
24
24
  end
@@ -2,5 +2,5 @@
2
2
  # This way other parts of Foreman can just call ForemanAnsible::VERSION
3
3
  # and detect what version the plugin is running.
4
4
  module ForemanAnsible
5
- VERSION = '2.2.8'.freeze
5
+ VERSION = '2.2.9'.freeze
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_ansible
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.8
4
+ version: 2.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Lobato Garcia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-19 00:00:00.000000000 Z
11
+ date: 2018-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -265,43 +265,43 @@ required_rubygems_version: !ruby/object:Gem::Requirement
265
265
  version: '0'
266
266
  requirements: []
267
267
  rubyforge_project:
268
- rubygems_version: 2.6.8
268
+ rubygems_version: 2.6.11
269
269
  signing_key:
270
270
  specification_version: 4
271
271
  summary: Ansible integration with Foreman (theforeman.org)
272
272
  test_files:
273
- - test/unit/host_ansible_role_test.rb
274
- - test/unit/helpers/ansible_reports_helper_test.rb
275
273
  - test/unit/ansible_role_test.rb
274
+ - test/unit/helpers/ansible_reports_helper_test.rb
275
+ - test/unit/actions/run_proxy_ansible_command_test.rb
276
+ - test/unit/actions/run_ansible_job_test.rb
277
+ - test/unit/ansible_provider_test.rb
276
278
  - test/unit/concerns/config_reports_extensions_test.rb
277
- - test/unit/concerns/host_managed_extensions_test.rb
278
279
  - test/unit/concerns/hostgroup_extensions_test.rb
279
- - test/unit/lib/foreman_ansible_core/command_creator_test.rb
280
+ - test/unit/concerns/host_managed_extensions_test.rb
281
+ - test/unit/hostgroup_ansible_role_test.rb
282
+ - test/unit/host_ansible_role_test.rb
280
283
  - test/unit/lib/foreman_ansible_core/roles_reader_test.rb
284
+ - test/unit/lib/foreman_ansible_core/command_creator_test.rb
281
285
  - test/unit/lib/foreman_ansible_core/playbook_runner_test.rb
282
286
  - test/unit/lib/proxy_api/ansible_test.rb
283
- - test/unit/ansible_provider_test.rb
284
- - test/unit/hostgroup_ansible_role_test.rb
285
- - test/unit/services/fact_importer_test.rb
286
- - test/unit/services/ui_roles_importer_test.rb
287
- - test/unit/services/inventory_creator_test.rb
288
- - test/unit/services/roles_importer_test.rb
289
- - test/unit/services/insights_plan_runner_test.rb
290
287
  - test/unit/services/fact_parser_test.rb
291
- - test/unit/services/api_roles_importer_test.rb
288
+ - test/unit/services/ui_roles_importer_test.rb
292
289
  - test/unit/services/structured_fact_importer_test.rb
293
290
  - test/unit/services/fact_sparser_test.rb
291
+ - test/unit/services/api_roles_importer_test.rb
292
+ - test/unit/services/roles_importer_test.rb
293
+ - test/unit/services/fact_importer_test.rb
294
+ - test/unit/services/insights_plan_runner_test.rb
295
+ - test/unit/services/inventory_creator_test.rb
294
296
  - test/unit/services/ansible_report_importer_test.rb
295
- - test/unit/actions/run_proxy_ansible_command_test.rb
296
- - test/unit/actions/run_ansible_job_test.rb
297
297
  - test/test_plugin_helper.rb
298
- - test/functional/hosts_controller_test.rb
298
+ - test/functional/api/v2/hostgroups_controller_test.rb
299
299
  - test/functional/api/v2/hosts_controller_test.rb
300
300
  - test/functional/api/v2/ansible_roles_controller_test.rb
301
- - test/functional/api/v2/hostgroups_controller_test.rb
301
+ - test/functional/hosts_controller_test.rb
302
302
  - test/functional/ansible_roles_controller_test.rb
303
- - test/factories/ansible_roles.rb
304
- - test/factories/ansible_proxy.rb
305
303
  - test/fixtures/report.json
306
304
  - test/fixtures/sample_facts.json
307
305
  - test/fixtures/insights_playbook.yaml
306
+ - test/factories/ansible_proxy.rb
307
+ - test/factories/ansible_roles.rb