Skip to content

Commit

Permalink
Fix a2mod ruby19 bug
Browse files Browse the repository at this point in the history
Strings are not enumerable in ruby19. This commit splits the
string into lines first.
  • Loading branch information
blkperl committed Aug 24, 2013
1 parent b0ce8c4 commit 8920ad2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/puppet/provider/a2mod/a2mod.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
defaultfor :operatingsystem => [:debian, :ubuntu]

def self.instances
modules = apache2ctl("-M").collect { |line|
modules = apache2ctl("-M").lines.collect { |line|
m = line.match(/(\w+)_module \(shared\)$/)
m[1] if m
}.compact
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/provider/a2mod/redhat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def destroy
end

def self.instances
modules = apachectl("-M").collect { |line|
modules = apachectl("-M").lines.collect { |line|
m = line.match(/(\w+)_module \(shared\)$/)
m[1] if m
}.compact
Expand Down

0 comments on commit 8920ad2

Please sign in to comment.