diff options
Diffstat (limited to 'roles/installer/ubuntu/autoinstall/files')
-rw-r--r-- | roles/installer/ubuntu/autoinstall/files/early-command.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/roles/installer/ubuntu/autoinstall/files/early-command.py b/roles/installer/ubuntu/autoinstall/files/early-command.py index 93d72b2d..0be450c9 100644 --- a/roles/installer/ubuntu/autoinstall/files/early-command.py +++ b/roles/installer/ubuntu/autoinstall/files/early-command.py @@ -15,11 +15,9 @@ try: for c in config['storage']['config']: if 'type' not in c or c['type'] != 'disk' or 'path' not in c: continue - c['path'] = os.path.realpath(c['path']) - - with open('/autoinstall.yaml', 'w') as file: - yaml.dump(config, file, default_flow_style=False) - except KeyError: pass + +with open('/autoinstall.yaml', 'w') as file: + yaml.dump(config, file, default_flow_style=False) |