1
0
mirror of https://github.com/gryf/boxpy.git synced 2025-12-19 13:37:58 +01:00

Save absolute path to the user config file

This commit is contained in:
2021-05-14 13:45:26 +02:00
parent 3ebe6ff529
commit f6a458e1f9

5
box.py
View File

@@ -243,7 +243,10 @@ class Config:
setattr(self, attr, vm_info[attr])
# next, grab the cloud config file
self.user_data = args.cloud_config or vm_info.get('user_data')
if args.config:
self.user_data = os.path.abspath(args.config)
else:
self.user_data = vm_info.get('user_data')
# combine it with the defaults, set attributes by boxpy_data
# definition, if found