Skip to content
This repository has been archived by the owner on Oct 19, 2020. It is now read-only.

Fix master ignition generation for DHCP of storage files do not exist #17

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion render_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ def add_dhcp_allocation_file(ignition_file, dhcp_allocation_file):
try:
with open(ignition_file, "r") as file_obj:
data = json.load(file_obj)
storage_files = data['storage']['files']
data['storage'] = data.get('storage', dict())
storage_files = data['storage'].get('files')
ori-amizur marked this conversation as resolved.
Show resolved Hide resolved
entry = {"filesystem": "root",
"path": "/etc/keepalived/unsupported-monitor.conf",
"mode": 644,
Expand Down