The-Loeki commented on a change in pull request #2089: vRouters fixes &
performance improvement
URL: https://github.com/apache/cloudstack/pull/2089#discussion_r120879087
##########
File path: systemvm/patches/debian/config/opt/cloud/bin/update_config.py
##########
@@ -52,15 +52,16 @@ def process(do_merge=True):
qf.setFile(sys.argv[1])
qf.do_merge = do_merge
qf.load(None)
-
return qf
def process_file():
print "[INFO] process_file"
qf = process()
- # Converge
- finish_config()
+ # 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')):
Review comment:
isn't that exactly what it says or am I having a complete brainfart here???
(DEFER_CONFIG is set and vm_dhcp/vm_metadata) || finish_config()
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services