mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Pass it to libcloud if the user has set it in the configuration, True, or False.
This commit is contained in:
parent
23e735437c
commit
65e5bac226
@ -599,9 +599,9 @@ def request_instance(vm_=None, call=None):
|
||||
kwargs['ex_userdata'] = fp.read()
|
||||
|
||||
config_drive = config.get_cloud_config_value(
|
||||
'config_drive', vm_, __opts__, default=False, search_global=False
|
||||
'config_drive', vm_, __opts__, default=None, search_global=False
|
||||
)
|
||||
if config_drive:
|
||||
if config_drive is not None:
|
||||
kwargs['ex_config_drive'] = config_drive
|
||||
|
||||
salt.utils.cloud.fire_event(
|
||||
|
Loading…
Reference in New Issue
Block a user