$OpenBSD: patch-google_compute_engine_config_manager_py,v 1.1.1.1 2017/06/29 14:35:10 ajacoutot Exp $

Index: google_compute_engine/config_manager.py
--- google_compute_engine/config_manager.py.orig
+++ google_compute_engine/config_manager.py
@@ -21,7 +21,7 @@ import textwrap
 from google_compute_engine import file_utils
 from google_compute_engine.compat import parser
 
-CONFIG = '/etc/default/instance_configs.cfg'
+CONFIG = '${SYSCONFDIR}/instance_configs.cfg'
 
 
 class ConfigManager(object):
@@ -101,7 +101,7 @@ class ConfigManager(object):
     """
     config_file = config_file or self.config_file
     config_name = os.path.splitext(os.path.basename(config_file))[0]
-    config_lock = '/var/lock/google_%s.lock' % config_name
+    config_lock = '/var/spool/lock/google_%s.lock' % config_name
     with file_utils.LockFile(config_lock):
       with open(config_file, 'w') as config_fp:
         if self.config_header:
