diff options
author | Ivan Kohler <ivan@freeside.biz> | 2018-04-11 16:54:54 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2018-04-11 16:54:54 -0700 |
commit | 574262f14977b5acab2fc09fa2aaaa74eefb210b (patch) | |
tree | 8e921b110fe8719879a7780db1ef404b648c8a83 | |
parent | 1d966768ea430d102aac2dfbedc7cc6b503b7e1a (diff) |
fix deployment zone error when there are no blocks yet, RT#78339, github-pr#66, thanks to sushrutp for the patch
-rw-r--r-- | FS/FS/deploy_zone.pm | 1 |
1 files changed, 1 insertions, 0 deletions
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 |