foreman_virt_who_configure 0.4.5 → 0.5.0

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: 1b49618448e8a187353b80fba1a83359bdab3356d5fd61cba7d3ce4c5e46fa0d
4
- data.tar.gz: b4aa7bc48dfba7dcff8c2daeab3d50b377371c7b9357d538c01be5a98a512c0c
3
+ metadata.gz: 2659de29d0b5edec86a19012025b4330f155235dc95dd52e817761a221909d5d
4
+ data.tar.gz: 575a79644dcb7a7b8521750a6b0b987c83891d56290b8abfb3aba6b3e1c31d3a
5
5
  SHA512:
6
- metadata.gz: 3afe8fdd3d3a7e9afa4dd8f161d809101cf4e80197427073a99d10ec2f1c029ff62f8ff41c33be6db8a4e5cb9ce18204ad55a6ee462b554d10d2cc0b3c0e1fbc
7
- data.tar.gz: d13dd560a075d680d13ccfd395d7a7321b1b5e5f8b58bd8a51d00aa35082aec61b54c82c5a8f1b0fb970c421a08822e7b5b854b5e089215a6c17c710ee67b1b6
6
+ metadata.gz: fa0ab2122fd333de032b1f151fcbda5f03acc0285d38cd35cb3775fe3008965a7dc1ec0f36df186324985f6923d060d313f3c1e176f1e0ce8848f1daad07cc80
7
+ data.tar.gz: 4d0c8bb70e05f307b1ab5aefe6c8689b4371d6932f0af2c77ffcb7e25fc0dcef0eee0424c22f0fb133ef1e45cd1c680018232277541119913f1d3a32e15ca2bd
@@ -174,6 +174,8 @@ module ForemanVirtWhoConfigure
174
174
  user = User.unscoped.find_by_id(service_user.user_id)
175
175
  service_user.destroy
176
176
  user.notification_recipients.delete_all
177
+ # we can't use destroy, because internal users can't be deleted
178
+ user.tasks.update_all :user_id => nil
177
179
  user.delete
178
180
  end
179
181
  end
@@ -27,7 +27,7 @@ module ForemanVirtWhoConfigure
27
27
 
28
28
  initializer 'foreman_virt_who_configure.register_plugin', :before => :finisher_hook do |_app|
29
29
  Foreman::Plugin.register :foreman_virt_who_configure do
30
- requires_foreman '>= 1.20'
30
+ requires_foreman '>= 1.24'
31
31
 
32
32
  apipie_documented_controllers ["#{ForemanVirtWhoConfigure::Engine.root}/app/controllers/foreman_virt_who_configure/api/v2/*.rb"]
33
33
 
@@ -1,3 +1,3 @@
1
1
  module ForemanVirtWhoConfigure
2
- VERSION = '0.4.5'.freeze
2
+ VERSION = '0.5.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_virt_who_configure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Foreman virt-who-configure team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-22 00:00:00.000000000 Z
11
+ date: 2019-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: katello