Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
Fix target_user
Browse files Browse the repository at this point in the history
  • Loading branch information
Genki Sugawara committed Oct 8, 2014
1 parent 80aba38 commit 2e5df6f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/gratan/exporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ def export
@driver.each_user do |user, host|
next if user =~ @options[:ignore_user]

if options[:target_user]
next unless user =~ @options[:target_user]
end

@driver.show_grants(user, host) do |stmt|
grants << Gratan::GrantParser.parse(stmt)
end
Expand Down

0 comments on commit 2e5df6f

Please sign in to comment.