$OpenBSD: patch-azurelinuxagent_common_conf_py,v 1.1.1.1 2017/06/23 12:37:09 reyk Exp $

from https://github.com/reyk/WALinuxAgent/commit/b9afe9fb4e0e6b984856c56811c41f44625b410f.patch

Index: azurelinuxagent/common/conf.py
--- azurelinuxagent/common/conf.py.orig
+++ azurelinuxagent/common/conf.py
@@ -112,6 +112,9 @@ def get_agent_pid_file_path(conf=__conf__):
     return conf.get("Pid.File", "/var/run/waagent.pid")
 
 
+def get_ext_enabled(conf=__conf__):
+    return conf.get_switch("Extension.Enabled", True)
+
 def get_ext_log_dir(conf=__conf__):
     return conf.get("Extension.LogDir", "/var/log/azure")
 
