summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantima-gupta <agupta@msystechnologies.com>2020-10-28 18:29:17 +0530
committerantima-gupta <agupta@msystechnologies.com>2020-10-28 18:29:17 +0530
commit0a7795d3348b101557284fbb21bfb315f5a3fcf4 (patch)
tree2fa10bebeb0fa2b8738fd5a88434eb229b1fd536
parent7fe69a2a865e24314540e2c8a9c0d28375b22eed (diff)
downloadchef-0a7795d3348b101557284fbb21bfb315f5a3fcf4.tar.gz
fixed chef-style spec failure.
Signed-off-by: antima-gupta <agupta@msystechnologies.com>
-rw-r--r--lib/chef/provider/mount.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/provider/mount.rb b/lib/chef/provider/mount.rb
index a417ef4ecc..64c7bc3f29 100644
--- a/lib/chef/provider/mount.rb
+++ b/lib/chef/provider/mount.rb
@@ -121,10 +121,10 @@ class Chef
# It's entirely plausible that a site might prefer UUIDs or labels, so
# we need to be able to update fstab to conform with their wishes
# without necessarily needing to remount the device.
- # See #6851 for more.
- # We have to compare current resource device with device_fstab value
+ # See #6851 for more.
+ # We have to compare current resource device with device_fstab value
# because entry in /etc/fstab will be as per device_type.
- # For Ex: 'LABEL=/tmp/ /mnt ext3 defaults,nofail 0 2', where 'device_type' is :label.
+ # For Ex: 'LABEL=/tmp/ /mnt ext3 defaults 0 2', where 'device_type' is :label.
def device_unchanged?
@current_resource.device == device_fstab
end
@@ -173,7 +173,7 @@ class Chef
end
end
- # Retruns the new_resource device as per device_type
+ # Returns the new_resource device as per device_type
def device_fstab
case @new_resource.device_type
when :device