foreman_scc_manager 1.6.2 → 1.6.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
  SHA256:
3
- metadata.gz: 3107d456ab7e1c5f822a4cbd7bd7ab1892d9f44fbcceb8bd60ec0ffb0746a685
4
- data.tar.gz: 4d048099707ca69af205df6ffa0dc31b178e96fcd4a817f4ec4106e6927b255d
3
+ metadata.gz: e046f783a69d37d132094313fbeed914c9d246e315bc238ca8ca8c2ae806dace
4
+ data.tar.gz: e9b8af6dd55a5756c76d4ba93f93b39919251930b281e694b5099add68147457
5
5
  SHA512:
6
- metadata.gz: ba3d694f7bdf5978877b7304b6d71a2a035bf58122ac7e1969914d4cd8b6a55adabd174965b10092b32986ec31d31f9e585f0d6a6ebf8045edae20305223538c
7
- data.tar.gz: 998d9f9d79624bb1f42e69c8ad546d6dd1c309c373a9a5db11cf849da266ecf0e83d54b77a1e260476b40169d1183c600cafcef1bf99fb8854fc61a3594e783d
6
+ metadata.gz: 3814c9b796a0b9869f00fdc49da07e46d71a73c9fbf32628c2dd11185fa84535b3469a6c7ee6b81f5fa3d0fe4a75f651f1f2d92bce35bf8289e0231c8c65f0c9
7
+ data.tar.gz: c8a7483a75e235b2499c99b885dcead01e57c5511e29655d5ec9013b604af70dd5cb3d9eb9042455080b6a4861435447907b73656944e96e0ea58502049ab7b0
@@ -20,7 +20,7 @@ class SccRepository < ApplicationRecord
20
20
  scc_products.where.not(product: nil).find_each do |sp|
21
21
  reponame = uniq_name(sp)
22
22
  repository = sp.product.root_repositories.find_by(name: reponame)
23
- unless repository.url == full_url
23
+ unless repository.nil? || repository.url == full_url
24
24
  ::Foreman::Logging.logger('foreman_scc_manager').info "Update URL-token for repository '#{reponame}'."
25
25
  ForemanTasks.async_task(::Actions::Katello::Repository::Update, repository, url: full_url)
26
26
  end
@@ -1,3 +1,3 @@
1
1
  module ForemanSccManager
2
- VERSION = '1.6.2'.freeze
2
+ VERSION = '1.6.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_scc_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.2
4
+ version: 1.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ATIX AG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-06 00:00:00.000000000 Z
11
+ date: 2019-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdoc