Moves _W32TIME_SERVICE to the module scope

This commit is contained in:
Robert Tingirica 2014-09-08 20:50:18 +03:00
parent 26fd3229ed
commit fd8beed0ce

View File

@ -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)