puppetlabs-lvm icon indicating copy to clipboard operation
puppetlabs-lvm copied to clipboard

Fix Error when blkid returns no TYPE field

Open ashkop opened this issue 8 years ago • 4 comments

If device has no file system yet, blkid return no TYPE information in its output on Ubuntu 16.04. This results is the following error output in Puppet:

Debug: Executing: '/sbin/blkid /dev/sdc1'
Error: /Stage[main]/Filesystem[/dev/sdc1]: Could not evaluate: undefined method `[]' for nil:NilClass

ashkop avatar Jan 17 '17 11:01 ashkop

There is typo: fstype_match VS fs_type_match

mciurcio avatar Feb 14 '17 17:02 mciurcio

Can something like this be merged? I just hit this issue when attempting to mount from a nonstandard location (like /dev/disk/)

csm10495 avatar May 27 '20 18:05 csm10495

Bumping this, it's still an issue and am having to use an Exec resource as a workaround. @Iristyle Any chance we can have some eyes on this? There's a ticket here.

cedws avatar Jan 12 '21 17:01 cedws

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Alex Shkop seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Feb 24 '21 17:02 CLAassistant

Closing as PR is outdated. Please re-open if necessary.

jordanbreen28 avatar Jun 26 '23 15:06 jordanbreen28