Skip to content

Commit

Permalink
scripts: support top-level autoinstall in validator
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Peterson444 committed Apr 2, 2024
1 parent c76dd6e commit 7da4265
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/validate-autoinstall-user-data.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@ def main() -> None:
assert user_data.readline() == "#cloud-config\n"
def get_autoinstall_data(data): return data["autoinstall"]
else:
def get_autoinstall_data(data): return data
def get_autoinstall_data(data):
try:
cfg = data["autoinstall"]
except KeyError:
cfg = data
return cfg


# Verify autoinstall doc link is in the file

Expand Down

0 comments on commit 7da4265

Please sign in to comment.