[freeside-commits] branch FREESIDE_3_BRANCH updated. 052b108c68cc7630d6cd5c61a3f7dbc4c824abbb

Ivan Kohler ivan at freeside.biz
Wed Apr 11 16:55:02 PDT 2018


The branch, FREESIDE_3_BRANCH has been updated
       via  052b108c68cc7630d6cd5c61a3f7dbc4c824abbb (commit)
      from  02ccaf002b3c1f5274266061786dc7d03047fe30 (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 052b108c68cc7630d6cd5c61a3f7dbc4c824abbb
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Apr 11 16:55:01 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 da4f3d7c0..6ad355f72 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