From: Ivan Kohler Date: Wed, 11 Apr 2018 23:54:54 +0000 (-0700) Subject: fix deployment zone error when there are no blocks yet, RT#78339, github-pr#66, thank... X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=574262f14977b5acab2fc09fa2aaaa74eefb210b fix deployment zone error when there are no blocks yet, RT#78339, github-pr#66, thanks to sushrutp for the patch --- diff --git a/FS/FS/deploy_zone.pm b/FS/FS/deploy_zone.pm index efa36610c..306b4fb44 100644 --- a/FS/FS/deploy_zone.pm +++ b/FS/FS/deploy_zone.pm @@ -418,6 +418,7 @@ sub process_block_lookup { die $response->status_line unless $response->is_success; $data = decode_json($response->content); die $data->{error}{message} if $data->{error}; + last unless scalar @{$data->{features}}; #Nothing to insert foreach my $feature (@{ $data->{features} }) { my $geoid = $feature->{attributes}{GEOID}; # the prize