Skip to content

Commit f0491d5

Browse files
authored
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>
1 parent e2ba934 commit f0491d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

systemvm/debian/opt/cloud/bin/update_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def process_file():
5252
qf.setFile(sys.argv[1])
5353
qf.load(None)
5454
# These can be safely deferred, dramatically speeding up loading times
55-
if not (os.environ.get('DEFER_CONFIG', False) and sys.argv[1] in ('vm_dhcp_entry.json', 'vm_metadata.json')):
55+
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])):
5656
# Converge
5757
finish_config()
5858

0 commit comments

Comments
 (0)