mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-03-12 03:41:12 +00:00
Fix autoinstall-extracting runcmd in the case no user-data is passed.
This commit is contained in:
parent
226a31dfe0
commit
49e550fb9e
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
||||
livecd-rootfs (2.649) UNRELEASED; urgency=medium
|
||||
|
||||
* Fix autoinstall-extracting runcmd in the case no user-data is passed.
|
||||
|
||||
-- Michael Hudson-Doyle <michael.hudson@ubuntu.com> Thu, 05 Mar 2020 15:35:17 +0100
|
||||
|
||||
livecd-rootfs (2.648) focal; urgency=medium
|
||||
|
||||
* Enable cloud-init in live server installer live session on all
|
||||
|
@ -126,6 +126,6 @@ runcmd:
|
||||
user_data = yaml.safe_load(subprocess.run([
|
||||
"cloud-init", "query", "userdata"],
|
||||
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:
|
||||
yaml.dump(user_data['autoinstall'], fp)
|
||||
|
Loading…
x
Reference in New Issue
Block a user