Skip to content

Commit

Permalink
Fix Rubocop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
dgdavid committed Mar 6, 2020
1 parent 685c29c commit 444ee20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/network/src/modules/PortAliases.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def main
# @return [Boolean] if allowed
def IsAllowedPortName(needle)
if needle.nil?
log.error("Invalid port name: %s" % needle)
log.error(format("Invalid port name: %s", needle))
false
elsif numeric?(needle)
# port is number
Expand Down Expand Up @@ -117,9 +117,9 @@ def GetListOfServiceAliases(needle)
elsif !@cache_not_allowed_ports.include?(needle)
@cache_not_allowed_ports << needle

log.error("Port name '%s' is not allowed" % needle)
log.error(format("Port name '%s' is not allowed", needle))
else
log.debug("Port name '%s' is not allowed" % needle)
log.debug(format("Port name '%s' is not allowed", needle))
end

[needle]
Expand Down

0 comments on commit 444ee20

Please sign in to comment.