You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2018/10/29 07:12:13 UTC

[GitHub] rhtyd commented on a change in pull request #2977: Defer was broken in VR because of json name change. Fix if statement.

rhtyd commented on a change in pull request #2977: Defer was broken in VR because of json name change. Fix if statement.
URL: https://github.com/apache/cloudstack/pull/2977#discussion_r228817465
 
 

 ##########
 File path: systemvm/debian/opt/cloud/bin/update_config.py
 ##########
 @@ -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])):
 
 Review comment:
   I'm okay with this changes, however this can be changed to `startswith`?

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services