Skip to content

Commit

Permalink
[webui] Cleanup setting of variables in patchinfo controller
Browse files Browse the repository at this point in the history
  • Loading branch information
bgeuken committed Jul 27, 2015
1 parent 2ff7e80 commit 2387ded
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions src/api/app/controllers/webui/patchinfo_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,21 +96,9 @@ def read_patchinfo
@summary = @file.value(:summary)

@description = @file.value(:description)
if @file.has_element?('relogin_needed')
@relogin = true
else
@relogin = false
end
if @file.has_element?('reboot_needed')
@reboot = true
else
@reboot = false
end
if @file.has_element?('zypp_restart_needed')
@zypp_restart_needed = true
else
@zypp_restart_needed = false
end
@relogin = @file.has_element?('relogin_needed')
@reboot = @file.has_element?('reboot_needed')
@zypp_restart_needed = @file.has_element?('zypp_restart_needed')
if @file.has_element?('stopped')
@block = true
@block_reason = @file.value(:stopped)
Expand Down

0 comments on commit 2387ded

Please sign in to comment.