manageiq-smartstate 0.5.3 → 0.5.4

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
- SHA256:
3
- metadata.gz: b4906198d8eb1b8a731ee8d900dc7eb1252614294c9ce08da9c096546d9c4aaa
4
- data.tar.gz: c63255fb528da1bf061ddb8c7783194d204649f28851e9b66e95d63ea3ceaf63
2
+ SHA1:
3
+ metadata.gz: a0ef0a15e10489e8bc2a06cf1cf8a1732fc9cade
4
+ data.tar.gz: db6e93260808919d00578cfdfb1251fae213016d
5
5
  SHA512:
6
- metadata.gz: 0ecc86078fd4c34990350644dc4da0a42368c22454ed73508066855b570e40adb87af40ae5762f42a8f4da8f696c26803553a80faab7d58b69ca3f0b6d328231
7
- data.tar.gz: d2c1df51fa69be56e1748eb26a2504d2b898a37dfc2f93ed4fc9c0bcb19e2c2474c07cc5e562a231c606bcc15ff0c6d10773f948678519c584a398edad22c918
6
+ metadata.gz: 6f85a2daa2ed024ef55f16bdf88ae9d713a4d0ca705fd4d57ddd13b0fdaa87d6f68273a6fc8b41f337bd6a63e4f4618a3c5348d073d6c8861362f9b1cb49eaf7
7
+ data.tar.gz: 68a90dea48f0a0ceefed907e16701c0fe495bfacc46652763046328c3acdc71a899aa4e6348c7bb9300f0ada79d56dd214fefcb41c5c62e1fdb11a94e2474fa4
@@ -309,23 +309,27 @@ module LinuxMount
309
309
  #
310
310
  components.each do |c|
311
311
  ncp = File.join(cp, c)
312
- #
313
- # Each file system know how to check for,
314
- # and read its own links.
315
- #
316
- fs, lp = getFsPathBase(ncp)
317
- if fs.fileSymLink?(lp)
318
- sl = getSymLink(fs, lp)
319
- if sl[0, 1] == '/'
320
- cp = sl
321
- else
322
- cp = File.join(cp, sl)
323
- end
312
+ cp = follow_all_symlinks(ncp)
313
+ end
314
+ cp
315
+ end
316
+
317
+ def follow_all_symlinks(link_ptr)
318
+ #
319
+ # Each filesystem knows how to check for,
320
+ # and read its own links.
321
+ #
322
+ no_more_links = false
323
+ until no_more_links
324
+ filesys, link_ptr = getFsPathBase(link_ptr)
325
+ if filesys.fileSymLink?(link_ptr)
326
+ symlink = getSymLink(filesys, linkptr)
327
+ link_ptr = symlink[0, 1] == '/' ? symlink : File.join(File.dirname(link_ptr), symlink)
324
328
  else
325
- cp = ncp
329
+ no_more_links = true
326
330
  end
327
331
  end
328
- (cp)
332
+ link_ptr
329
333
  end
330
334
 
331
335
  def getSymLink(fs, p)
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module Smartstate
3
- VERSION = "0.5.3".freeze
3
+ VERSION = "0.5.4".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manageiq-smartstate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Developers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-18 00:00:00.000000000 Z
11
+ date: 2020-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: azure-armrest
@@ -559,7 +559,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
559
559
  - !ruby/object:Gem::Version
560
560
  version: '0'
561
561
  requirements: []
562
- rubygems_version: 3.1.2
562
+ rubyforge_project:
563
+ rubygems_version: 2.6.12
563
564
  signing_key:
564
565
  specification_version: 4
565
566
  summary: ManageIQ SmartState Analysis