mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-25 02:50:08 +03:00
feature #2259: Do not include CONTEXT section if empty
This commit is contained in:
parent
52f3a50042
commit
61ff108069
@ -162,6 +162,10 @@ module Instance
|
||||
context["EC2_KEYNAME"] = params['KeyName'] if params['KeyName']
|
||||
context["EC2_USER_DATA"] = params['UserData'] if params['UserData']
|
||||
|
||||
if merge_info["CONTEXT"].empty?
|
||||
merge_info.delete("CONTEXT")
|
||||
end
|
||||
|
||||
template_str = template_to_str(merge_info)
|
||||
vm_id =
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user