Skip to content

Commit

Permalink
status: fix memsize type
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsejet committed May 10, 2024
1 parent 3ef494c commit 4d7e62c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion framework/internal/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
'path_exists': lambda path: os.path.exists(path),
'read_file': lambda path: open(path).read(),
'oneline': lambda text: ''.join(text.splitlines()),
'list': lambda iter: list(iter),
'list': lambda obj: list(obj),
'str': lambda obj: str(obj),
}

def render(node_name: str, dry: bool = False) -> None:
Expand Down
2 changes: 1 addition & 1 deletion templates/file-server/routers.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
'position': data['position'],
'_real_position': data['position'],

'memsize': str(data['memsize']) + 'G',
'backbone': true,
'memsize': data['memsize'],
'fch-enabled': true,
} | tojson }}
{% if not loop.last %},{% endif %}
Expand Down

0 comments on commit 4d7e62c

Please sign in to comment.