Skip to content

Commit

Permalink
pick offset per site
Browse files Browse the repository at this point in the history
  • Loading branch information
kthare10 committed May 20, 2024
1 parent 153edea commit a89587e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fimutil/ralph/worker_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit a89587e

Please sign in to comment.