From a89587e25d0651932fbb3f61f2cda4fc84aa0b17 Mon Sep 17 00:00:00 2001 From: Komal Thareja Date: Mon, 20 May 2024 17:17:58 -0400 Subject: [PATCH] pick offset per site --- fimutil/ralph/worker_node.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fimutil/ralph/worker_node.py b/fimutil/ralph/worker_node.py index eb97682..b9b9f0e 100644 --- a/fimutil/ralph/worker_node.py +++ b/fimutil/ralph/worker_node.py @@ -98,8 +98,8 @@ def parse(self): if disk: self.model.fields['Disk'] = f'{disk}G' - if self.config and self.config.get('ram_offset'): - ram_offset = self.config.get('ram_offset') + if self.config and self.config.get(self.site) and self.config.get(self.site).get('ram_offset'): + ram_offset = self.config.get(self.site).get('ram_offset') ram -= ram_offset if ram > 0: self.model.fields['RAM'] = f'{ram}G'