diff options
author | Jacob Helwig <jacob@puppetlabs.com> | 2011-02-18 10:52:02 -0800 |
---|---|---|
committer | Jacob Helwig <jacob@puppetlabs.com> | 2011-02-18 11:30:00 -0800 |
commit | 960890f6ac6bcf1d639c68d4fe807ac54bf3a1ba (patch) | |
tree | c29211b6d24268bcb6172ea76df5b2694cb50601 /spec | |
parent | 9e0f9c5cfecf4ff81724c048c5afe5a288fcc9b2 (diff) | |
download | puppet-960890f6ac6bcf1d639c68d4fe807ac54bf3a1ba.tar.gz puppet-960890f6ac6bcf1d639c68d4fe807ac54bf3a1ba.tar.xz puppet-960890f6ac6bcf1d639c68d4fe807ac54bf3a1ba.zip |
(#6364) Adjust mis-translated regex in mount provider for AIX
The commit to simplify the regex used to parse the output from the mount
command on AIX (50c12e55b6f8462f6904ae061e661d1d10c7590a) mis-translated
it.
The original regex was grabbing the 3rd space-separated element, not the
2nd. This mis-translation caused the provider to grab the device
information instead of the mount point, and compare that to the desired
mount point. This would cause Puppet to think that the mount was never
actually mounted under normal circumstances.
The code from 50c12e5 was passing the tests because the fixture data did
not include the mandatory leading whitespace that the original regex was
looking for. The updated fixture data is pulled from the mount manpage
from AIX v6r1.
Reviewed-by: Paul Berry <paul@puppetlabs.com>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/fixtures/unit/provider/mount/mount-output.aix.txt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/fixtures/unit/provider/mount/mount-output.aix.txt b/spec/fixtures/unit/provider/mount/mount-output.aix.txt index 54edb9c1c..380dbc5ae 100644 --- a/spec/fixtures/unit/provider/mount/mount-output.aix.txt +++ b/spec/fixtures/unit/provider/mount/mount-output.aix.txt @@ -1,7 +1,7 @@ -/dev/hd4 / jfs2 Nov 11 12:11 rw,log=/dev/hd8 -/dev/hd2 /usr jfs2 Nov 11 12:11 rw,log=/dev/hd8 -/dev/hd9var /var jfs2 Nov 11 12:11 rw,log=/dev/hd8 -/dev/hd3 /tmp jfs2 Nov 11 12:11 rw,log=/dev/hd8 -/dev/hd1 /home jfs2 Nov 11 12:11 rw,log=/dev/hd8 -/proc /proc procfs Nov 11 12:11 rw -/dev/hd10opt /opt jfs2 Nov 11 12:11 rw,log=/dev/hd8 +node mounted mounted over vfs date options +---- ------- ------------ --- ------------ ------------------- + /dev/hd0 / jfs Dec 17 08:04 rw, log =/dev/hd8 + /dev/hd3 /tmp jfs Dec 17 08:04 rw, log =/dev/hd8 + /dev/hd1 /home jfs Dec 17 08:06 rw, log =/dev/hd8 + /dev/hd2 /usr jfs Dec 17 08:06 rw, log =/dev/hd8 +sue /home/local/src /usr/code nfs Dec 17 08:06 ro, log =/dev/hd8 |