[freeside-commits] branch master updated. 574262f14977b5acab2fc09fa2aaaa74eefb210b

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


The branch, master has been updated
       via  574262f14977b5acab2fc09fa2aaaa74eefb210b (commit)
      from  1d966768ea430d102aac2dfbedc7cc6b503b7e1a (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 574262f14977b5acab2fc09fa2aaaa74eefb210b
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Apr 11 16:54:54 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