We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8eeb78 commit 8a49a63Copy full SHA for 8a49a63
modules/post/linux/gather/mount_cifs_creds.rb
@@ -38,6 +38,7 @@ def run
38
])
39
40
# parse each line from /etc/fstab
41
+ fail_with(Failure::NotFound, '/etc/fstab not found on system') unless file_exist?('/etc/fstab')
42
read_file("/etc/fstab").each_line do |fstab_line|
43
fstab_line.strip!
44
# where we'll store the current parsed credentials, if any
0 commit comments