foreman_setup 2.0.2 → 2.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: 06b696364208f23f38737a12d4bef14e7d01b649
4
- data.tar.gz: 9249c0ea3ffd43ee9268ae96790772fc336f8b24
3
+ metadata.gz: 0bf21d036debd554c2c8517fa5f90702d9c0582c
4
+ data.tar.gz: 3f22698d58ca143812e14872ab06194e6f98045b
5
5
  SHA512:
6
- metadata.gz: c8abdf16fd6ee68536544ee81bce81348bd367704d27dd481e30073ec27446d6b74d23136b3481eec9a7495c9ff6c9c653503665f5f6f54f79b82c05311dab78
7
- data.tar.gz: db6f043f7bfb546e10267ce358b4301e18f1af4dc74c3453b4c20a29695c3b5bbdf7225f510f2e6a8a4eafd0c035fb679aee435e964dbf26099442eed0537bd4
6
+ metadata.gz: 6c2045d0b9e7790f6704437cdfbee16c822951be1cfb670644cc93855e77d2bfdaf63a781ca24d84543d2d3133984fd9406e372c24bc734b573f121dfbd1b647
7
+ data.tar.gz: d6fd914ffdc7f7686596682f3bcd7999d07b964bd7f201091f67687ac24f84d5e7548109d4bb2b9b960697a4b3f4d52935329811bbea3ac504105eb702e71212
data/CHANGES.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## v2.0.3
4
+ * fix Facter 2 compatibility
5
+
3
6
  ## v2.0.2
4
7
  * remove obsolete menu extension, causing warnings
5
8
 
@@ -89,7 +89,7 @@ module ForemanSetup
89
89
 
90
90
  # Helpful fix to work around #3210
91
91
  url = Setting.find_by_name('foreman_url')
92
- url.value ||= Facter.fqdn
92
+ url.value ||= Facter.value(:fqdn)
93
93
  url.save!
94
94
 
95
95
  # Build default PXE menu
@@ -195,7 +195,7 @@ module ForemanSetup
195
195
  # foreman_setup manages only itself at the moment, so ensure we always have a reference to
196
196
  # the Host and SmartProxy on this server
197
197
  def find_myself
198
- fqdn = Facter.fqdn
198
+ fqdn = Facter.value(:fqdn)
199
199
  @host = Host.find_by_name(fqdn)
200
200
  @proxy = SmartProxy.all.find { |p| URI.parse(p.url).host == fqdn }
201
201
  end
@@ -28,7 +28,7 @@ module ForemanSetup
28
28
  end
29
29
 
30
30
  def fqdn
31
- Facter.fqdn
31
+ Facter.value(:fqdn)
32
32
  end
33
33
 
34
34
  def interfaces
@@ -1,3 +1,3 @@
1
1
  module ForemanSetup
2
- VERSION = '2.0.2'
2
+ VERSION = '2.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_setup
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominic Cleal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-03 00:00:00.000000000 Z
11
+ date: 2014-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface