Skip to content

Commit

Permalink
Land rapid7#18669, Print additional settings notice on non-empty data…
Browse files Browse the repository at this point in the history
…store values
  • Loading branch information
adfoster-r7 authored Jan 5, 2024
2 parents 08beadd + e0804cf commit ee3b8b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/msf/ui/console/command_dispatcher/modules.rb
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ def cmd_use(*args)
end

# If any additional datastore values were provided, set these values
unless additional_datastore_values.nil?
unless additional_datastore_values.nil? || additional_datastore_values.empty?
mod.datastore.update(additional_datastore_values)
print_status("Additionally setting #{additional_datastore_values.map { |k,v| "#{k} => #{v}" }.join(", ")}")
end
Expand Down

0 comments on commit ee3b8b4

Please sign in to comment.