mirror of
https://github.com/gryf/boxpy.git
synced 2025-12-19 05:30:18 +01:00
Save absolute path to the user config file
This commit is contained in:
5
box.py
5
box.py
@@ -243,7 +243,10 @@ class Config:
|
|||||||
setattr(self, attr, vm_info[attr])
|
setattr(self, attr, vm_info[attr])
|
||||||
|
|
||||||
# next, grab the cloud config file
|
# 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
|
# combine it with the defaults, set attributes by boxpy_data
|
||||||
# definition, if found
|
# definition, if found
|
||||||
|
|||||||
Reference in New Issue
Block a user