From c00201bef08bb47344d25706299cdd620002a8e6 Mon Sep 17 00:00:00 2001 From: Mik Date: Fri, 30 Apr 2021 18:18:20 +0200 Subject: [PATCH] handle no ars network --- service/objects/vn.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/service/objects/vn.rb b/service/objects/vn.rb index b650cf3e..6d5c0797 100644 --- a/service/objects/vn.rb +++ b/service/objects/vn.rb @@ -41,6 +41,8 @@ def ar_pool pool = to_hash['VNET']['AR_POOL']['AR'] if pool.class == Hash then return [pool] + elsif pool.nil? then + return [] else return pool end