From fd8beed0ced3fc0f0b783ed417ce91ea8e559804 Mon Sep 17 00:00:00 2001 From: Robert Tingirica Date: Mon, 8 Sep 2014 20:50:18 +0300 Subject: [PATCH] Moves _W32TIME_SERVICE to the module scope --- cloudbaseinit/plugins/windows/ntpclient.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cloudbaseinit/plugins/windows/ntpclient.py b/cloudbaseinit/plugins/windows/ntpclient.py index 813eaefa..41d1fa1f 100644 --- a/cloudbaseinit/plugins/windows/ntpclient.py +++ b/cloudbaseinit/plugins/windows/ntpclient.py @@ -33,10 +33,11 @@ CONF.register_opts(opts) LOG = logging.getLogger(__name__) +_W32TIME_SERVICE = "w32time" + class NTPClientPlugin(base.BasePlugin): def _check_w32time_svc_status(self, osutils): - _W32TIME_SERVICE = "w32time" svc_start_mode = osutils.get_service_start_mode( _W32TIME_SERVICE)