mirror of https://github.com/apache/cloudstack.git
vr: defer was broken in VR because of json name change (#2979)
After upgrade from CS 4.10 to CS 4.11, multiple VRs did not start through. It did not properly defer the finalize config in update_config.py. Apparently, the json files are now called differently: where it used to be vm_dhcp_entry.json it now has a uuid added, for example vm_metadata.json.4d727b6e-2b48-49df-81c3-b8532f3d6745. The if statement that checks if the finalize can be safely deferred therefore no longer matches. This PR contains a fix so finalize is defered again. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
e2ba934c19
commit
f0491d5c72
|
|
@ -52,7 +52,7 @@ def process_file():
|
|||
qf.setFile(sys.argv[1])
|
||||
qf.load(None)
|
||||
# These can be safely deferred, dramatically speeding up loading times
|
||||
if not (os.environ.get('DEFER_CONFIG', False) and sys.argv[1] in ('vm_dhcp_entry.json', 'vm_metadata.json')):
|
||||
if not (os.environ.get('DEFER_CONFIG', False) and ('vm_dhcp_entry.json' in sys.argv[1] or 'vm_metadata.json' in sys.argv[1])):
|
||||
# Converge
|
||||
finish_config()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue