Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9337034
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
587 B
Subscribers
None
View Options
diff --git a/site-modules/profile/lib/facter/ceph_mgr_modules.rb b/site-modules/profile/lib/facter/ceph_mgr_modules.rb
index 4dd70adb..a82cfcaf 100644
--- a/site-modules/profile/lib/facter/ceph_mgr_modules.rb
+++ b/site-modules/profile/lib/facter/ceph_mgr_modules.rb
@@ -1,14 +1,14 @@
require 'json'
Facter.add('ceph_mgr_modules') do
setcode do
if File.exist?('/var/lib/ceph/mgr')
data = Facter::Core::Execution.execute('ceph mgr module ls').strip
- if data
+ if !data.empty?
JSON.parse(data)
else
{}
end
end
end
end
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Jul 4 2025, 7:51 AM (10 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3435348
Attached To
rSPSITE puppet-swh-site
Event Timeline
Log In to Comment