diff --git a/scripts/exglobal_oceanice_products.py b/scripts/exglobal_oceanice_products.py index 0f8e2e0d6d..9e4d00189b 100755 --- a/scripts/exglobal_oceanice_products.py +++ b/scripts/exglobal_oceanice_products.py @@ -19,8 +19,7 @@ def main(): # Pull out all the configuration keys needed to run the rest of steps keys = ['HOMEgfs', 'DATA', 'current_cycle', 'RUN', 'NET', - 'COM_OCEAN_HISTORY', 'COM_OCEAN_GRIB', - 'COM_ICE_HISTORY', 'COM_ICE_GRIB', + f'COM_{oceanice.task_config.component.upper()}_HISTORY', f'COM_{oceanice.task_config.component.upper()}_GRIB' 'APRUN_OCNICEPOST', 'component', 'forecast_hour', 'valid_datetime', 'avg_period', 'model_grid', 'product_grids', 'oceanice_yaml']