Skip to content

Commit

Permalink
consistent delete keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Oct 13, 2016
1 parent 43ebe40 commit 5d4bfaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/cfa/hosts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def add_entry(ip, canonical, aliases = [])
# If it is canonical name, then the first alias becomes the canonical hostname
# @param [String] hostname
# @return [void]
def remove_hostname(hostname)
def delete_hostname(hostname)
entries = data.select(hostname_matcher(hostname))
entries.each do |pair|
entry = pair[:value]
Expand Down
2 changes: 1 addition & 1 deletion src/modules/Host.rb
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def Update(oldhn, newhn, ip)
@modified = true

# Remove old hostname from hosts
@hosts.remove_hostname(oldhn) if !oldhn.empty?
@hosts.delete_hostname(oldhn) if !oldhn.empty?

# Add localhost if missing
if @hosts.host("127.0.0.1").empty?
Expand Down

0 comments on commit 5d4bfaa

Please sign in to comment.