Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix parsing size from lvs output #169

Merged
merged 1 commit into from
Dec 1, 2016

Conversation

felixb
Copy link
Contributor

@felixb felixb commented Nov 30, 2016

lvs prints 2.5G as 2.50g. This makes puppet try to extend the lv if you ensure a volume with size of 2.5g.
lvextend complains because of the same size and fails, breaking the puppet apply.

This commit strips zeros from floating point values from lvs ouptut.

lvs prints 2.5G as 2.50g. This makes puppet try to extend the lv if you ensure a volume with size of 2.5g.
lvextend complains because of the same size and fails, breaking the puppet apply.

This commit strips zeros from floating point values from lvs ouptut.
@tphoney tphoney merged commit 9aa076a into puppetlabs:master Dec 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants