From a45fe0f4d168bb8d3ea3e6cdeb499616de860bcf Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Tue, 17 May 2022 14:38:00 -0500 Subject: [PATCH] Pull old port ins (from v1 days) from config file --- bin/cancel_expired_customers | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/cancel_expired_customers b/bin/cancel_expired_customers index c49f5c2..a044d6b 100755 --- a/bin/cancel_expired_customers +++ b/bin/cancel_expired_customers @@ -24,7 +24,8 @@ CONFIG = Dhall.load(<<-DHALL).sync password: Text, target: Text -> Text, body: Text -> Text -> Text - } + }, + old_port_ins: List Text } DHALL @@ -61,7 +62,7 @@ ported_in_promise = Promise.new EM.schedule do Fiber.new { begin - tns = Set.new + tns = Set.new(CONFIG[:old_port_ins]) page = BandwidthIris::PortIn.list( page: 1, size: 1000, -- 2.34.2