From 2cfebaf229650a3751d117b2cd8043a30681a026 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Wed, 11 Apr 2018 16:54:57 -0700 Subject: [PATCH] fix deployment zone error when there are no blocks yet, RT#78339, github-pr#66, thanks to sushrutp for the patch --- FS/FS/deploy_zone.pm | 1 + 1 file changed, 1 insertion(+) 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 -- 2.11.0