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 undefined method: inject for String #20

Merged
merged 1 commit into from
Jan 18, 2013
Merged

Fix undefined method: inject for String #20

merged 1 commit into from
Jan 18, 2013

Conversation

robbat2
Copy link
Contributor

@robbat2 robbat2 commented Jan 11, 2013

The physical_volumes extraction using inject function doesn't work.
Change to using split/grep/map.

/Stage[main]/Releng::Disks/Volume_groupvg: Could not evaluate: undefined method `inject' for " PV,VG\n/dev/sda4,vg\n":String

Signed-off-by: Robin H. Johnson robbat2@gentoo.org

The physical_volumes extraction using inject function doesn't work.
Change to using split/grep/map.

/Stage[main]/Releng::Disks/Volume_group[vg] (err): Could not evaluate: undefined method `inject' for "  PV,VG\n/dev/sda4,vg\n":String

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
@adrienthebo
Copy link
Contributor

For clarification, this fix is necessary because Ruby 1.9 removed String#inject. I've checked it and it looks good.

adrienthebo added a commit that referenced this pull request Jan 18, 2013
Fix undefined method: inject for String
@adrienthebo adrienthebo merged commit b831542 into puppetlabs:master Jan 18, 2013
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