[freeside-commits] branch FREESIDE_4_BRANCH updated. 2cfebaf229650a3751d117b2cd8043a30681a026

Ivan Kohler ivan at freeside.biz
Wed Apr 11 16:54:58 PDT 2018


The branch, FREESIDE_4_BRANCH has been updated
       via  2cfebaf229650a3751d117b2cd8043a30681a026 (commit)
      from  52868a4e0abe9e0a9aa78fe04ca5a3462c3bc5a6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2cfebaf229650a3751d117b2cd8043a30681a026
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Apr 11 16:54:57 2018 -0700

    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

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/deploy_zone.pm | 1 +
 1 file changed, 1 insertion(+)




More information about the freeside-commits mailing list