foreman_datacenter 0.1.11 → 0.1.12

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: 7c94775b93ef6532a099f1ec3d02445ccc937859
4
- data.tar.gz: 4af4253f2a41709442751dfa3019315910bc30d8
3
+ metadata.gz: c8b5541a96683ab9211c45518781163a82b54664
4
+ data.tar.gz: a57578a338a0148fec63174f7bb07384ccd964cf
5
5
  SHA512:
6
- metadata.gz: 2aecdb21f69f6b84c5c8e91624ad69eccc85423e21ce54498d19e45003fb35408ea560d3804eb0250237bd57c38dfb1acd9b62153250fe83b21f780361998191
7
- data.tar.gz: e0d92a9518fd7a2b2ebbe4a0ef81ad82b57a94a85a2df23409707ad85b229cc4e2d491874c8d37fb443102daaa22e54cccc058d9f84acbb69274c4a8c5bfc737
6
+ metadata.gz: 932d6c55900349935ca0e2a5c093b4be925cbd1d0b386b9629776e686437c10815151ce252c0b2a30f0fcf66ea20d541748ceac8cc8c22cc65382a7be82f5ccb
7
+ data.tar.gz: 2efb5da9071236d366776388a709c20058fc91cb97bbdd3fe09f8c0d88340678bc7e1f0044a476631f880e7251afb123bce0a1e0e4071c82cc31b4feea17e457
@@ -9,7 +9,7 @@ module ForemanDatacenter
9
9
  end
10
10
 
11
11
  def update_device_on_destroy
12
- if device.exists?
12
+ if device
13
13
  new_device_name = "Unassigned device (former: #{name})"
14
14
  device.update(name: new_device_name)
15
15
  # device.interfaces.clear
@@ -1,3 +1,3 @@
1
1
  module ForemanDatacenter
2
- VERSION = '0.1.11'.freeze
2
+ VERSION = '0.1.12'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_datacenter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Ivanov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-10 00:00:00.000000000 Z
11
+ date: 2017-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface