gem: initialize new status attributes with default values

- prevents 'undefined method each_with_index for nil:NilClass' errors
This commit is contained in:
cn 2022-01-18 23:17:42 +01:00
parent 2a9bacf196
commit eb2bb4d632
1 changed files with 2 additions and 0 deletions

View File

@ -5,7 +5,9 @@ module OpenVPNStatusWeb
class ModernStateless
def self.parse_status_log(text, sep)
status = Status.new
status.client_list_headers = []
status.client_list = []
status.routing_table_headers = []
status.routing_table = []
status.global_stats = []