|
|
@ -126,6 +126,6 @@ runcmd:
|
|
|
|
user_data = yaml.safe_load(subprocess.run([
|
|
|
|
user_data = yaml.safe_load(subprocess.run([
|
|
|
|
"cloud-init", "query", "userdata"],
|
|
|
|
"cloud-init", "query", "userdata"],
|
|
|
|
check=True, stdout=subprocess.PIPE, encoding='utf-8').stdout)
|
|
|
|
check=True, stdout=subprocess.PIPE, encoding='utf-8').stdout)
|
|
|
|
if 'autoinstall' in user_data:
|
|
|
|
if user_data is not None and 'autoinstall' in user_data:
|
|
|
|
with open("/autoinstall.yaml", "w") as fp:
|
|
|
|
with open("/autoinstall.yaml", "w") as fp:
|
|
|
|
yaml.dump(user_data['autoinstall'], fp)
|
|
|
|
yaml.dump(user_data['autoinstall'], fp)
|
|
|
|