Skip to content

Commit

Permalink
Changes based on code review
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed Jul 20, 2021
1 parent 9304162 commit 523066e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/y2network/autoinst_profile/interface_section.rb
Expand Up @@ -279,9 +279,9 @@ def initialize(*_args)
# Overwrite base method to load also nested aliases
def init_from_hashes(hash)
hash = rename_key(hash, "bridge_forwarddelay", "bridge_forward_delay")
super(hash.reject { |k, _| k == "aliases" })
super(hash)

self.aliases = hash["aliases"] if hash["aliases"].is_a?(Hash)
self.aliases = hash["aliases"].is_a?(Hash) ? hash["aliases"] : {}
end

# Method used by {.new_from_network} to populate the attributes when cloning a network
Expand Down

0 comments on commit 523066e

Please sign in to comment.