summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpratixha <pratiksha.prajapati@msystechnologies.com>2022-04-06 12:56:49 +0530
committerpratixha <pratiksha.prajapati@msystechnologies.com>2022-04-06 12:56:49 +0530
commit20497ffa8bc97598510fdd385b39a058512d2acb (patch)
treec89987a642b10fb2bf5c183a8e53c8598dfb8b27
parentdaace13458d0e144d4d1807dd5390915caea9842 (diff)
downloadchef-20497ffa8bc97598510fdd385b39a058512d2acb.tar.gz
Renamed device_with_space_escape and added explanation comments
Signed-off-by: pratixha <pratiksha.prajapati@msystechnologies.com>
-rw-r--r--cspell.json1
-rw-r--r--lib/chef/provider/mount/mount.rb6
2 files changed, 4 insertions, 3 deletions
diff --git a/cspell.json b/cspell.json
index e171833e86..192d4819c3 100644
--- a/cspell.json
+++ b/cspell.json
@@ -14,6 +14,7 @@
"dictionaries": ["chef"],
// words - list of words to be always considered correct
"words": [
+ "CIFS",
"abcz",
"abdulin",
"ABORTIFHUNG",
diff --git a/lib/chef/provider/mount/mount.rb b/lib/chef/provider/mount/mount.rb
index 6b062d1225..2021d6ece5 100644
--- a/lib/chef/provider/mount/mount.rb
+++ b/lib/chef/provider/mount/mount.rb
@@ -219,9 +219,9 @@ class Chef
def device_with_space_escape
# For CIFS (and perhaps other remote network mounts) when a space is in the "device name"
- # it will appear with the space substituted with a special character. However, when mounting,
- # the mount needs to be done with an actual space. This function provides the device name with
- # the special character to determine if the device is mounted.
+ # It will appear with the space substituted with a special character. However, when mounting,
+ # The mount needs to be done with an actual space. This function provides the device name with
+ # The special character to determine if the device is mounted.
device_mount_regex.gsub(" ", "\\x20")
end