Skip to content

Commit

Permalink
Other way of merge
Browse files Browse the repository at this point in the history
  • Loading branch information
kobliha committed Aug 13, 2013
1 parent ea4d79f commit 5aae74a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/include/dns-server/dialog-masterzone.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1105,16 +1105,14 @@ def InitSoaTab
nil
end

# Store settings of a tab of a dialog
# Store SOA dialog settings
def StoreSoaTab
@current_zone['ttl'] = "%{ttl_value}%{ttl_units}" % {
:ttl_value => UI.QueryWidget(Id('zone_settings_ttl_value'), :Value),
:ttl_units => UI.QueryWidget(Id('zone_settings_ttl_units'), :Value)
}

@current_zone['soa'] = {} unless @current_zone.has_key?('soa')

@current_zone['soa'].merge! {
soa_update = {
'serial' => UI.QueryWidget(Id('zone_settings_serial'), :Value),
'refresh' => "%{refresh_value}%{refresh_units}" % {
:refresh_value => UI.QueryWidget(Id('zone_settings_refresh_value'), :Value),
Expand All @@ -1134,8 +1132,10 @@ def StoreSoaTab
}
}

@current_zone['update_actions'] = [] unless @current_zone.has_key?('update_actions')
@current_zone['soa'] = {} unless @current_zone.has_key?('soa')
@current_zone['soa'].merge!(soa_update)

@current_zone['update_actions'] = [] unless @current_zone.has_key?('update_actions')
@current_zone['update_actions'] << {
'operation' => 'add',
'type' => 'SOA',
Expand Down

0 comments on commit 5aae74a

Please sign in to comment.