Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.

Commit

Permalink
(maint) Fix master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Oana Tanasoiu committed May 6, 2020
1 parent a6d662d commit 6dd5b55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/facter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def version
#
# @api private
def to_user_output(cli_options, *args)
init_cli_options(cli_options)
init_cli_options(cli_options, args)
logger.info("executed with command line: #{ARGV.drop(1).join(' ')}")
log_blocked_facts

Expand Down Expand Up @@ -272,7 +272,7 @@ def logger
@logger ||= Log.new(self)
end

def init_cli_options(options)
def init_cli_options(options, args)
options = options.map { |(k, v)| [k.to_sym, v] }.to_h
Facter::Options.init_from_cli(options, args)
end
Expand Down

0 comments on commit 6dd5b55

Please sign in to comment.