From 2f3efa2c87cfca19c5bf9f99581e03a802685957 Mon Sep 17 00:00:00 2001 From: "Mitch Harding (the weird one)" Date: Tue, 15 Oct 2024 16:45:54 -0400 Subject: [PATCH] CASMCMS-9165: Fix per-bootset CFS setting (cherry picked from commit 16e552561ed574d2a60a38c1abfcafc58809f1cb) --- CHANGELOG.md | 2 ++ src/bos/operators/session_setup.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 02f4f019..a989c1f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Fixed +- Fix per-bootset CFS setting ## [2.0.46] - 2024-09-26 ### Fixed diff --git a/src/bos/operators/session_setup.py b/src/bos/operators/session_setup.py index 9d9c9af3..88ecd3fc 100644 --- a/src/bos/operators/session_setup.py +++ b/src/bos/operators/session_setup.py @@ -285,7 +285,7 @@ def _get_configuration_from_boot_set(self, boot_set: dict): """ if not self.template.get('enable_cfs', True): return '' - bs_config = boot_set.get('configuration', '') + bs_config = boot_set.get('cfs', {}).get('configuration', '') if bs_config: return bs_config # Otherwise, we take the configuration value from the session template itself