From 88ee7fa381a5917809b047ec4301630b1001fdfb Mon Sep 17 00:00:00 2001
From: Geoff Cureton <geoff.cureton@ssec.wisc.edu>
Date: Wed, 15 Dec 2021 23:43:04 +0000
Subject: [PATCH] Strip leading and trailing zeros from the collection number
 which comes in from the product definition.

---
 source/flo/__init__.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/source/flo/__init__.py b/source/flo/__init__.py
index a2e6659..aca7acc 100644
--- a/source/flo/__init__.py
+++ b/source/flo/__init__.py
@@ -961,6 +961,9 @@ class FUSION_MATLAB(Computation):
 
         LOG.debug("dist_root = '{}'".format(dist_root))
 
+        # Strip any leading or trailing zeros from the collection number.
+        product.options['collection'] = int(str(product.options['collection']).strip('0'))
+
         # Get the required  environment variables
         env = self.prepare_env(dist_root, inputs, context)
 
-- 
GitLab