Moves _W32TIME_SERVICE to the module scope
This commit is contained in:
parent
26fd3229ed
commit
fd8beed0ce
@ -33,10 +33,11 @@ CONF.register_opts(opts)
|
|||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
_W32TIME_SERVICE = "w32time"
|
||||||
|
|
||||||
|
|
||||||
class NTPClientPlugin(base.BasePlugin):
|
class NTPClientPlugin(base.BasePlugin):
|
||||||
def _check_w32time_svc_status(self, osutils):
|
def _check_w32time_svc_status(self, osutils):
|
||||||
_W32TIME_SERVICE = "w32time"
|
|
||||||
|
|
||||||
svc_start_mode = osutils.get_service_start_mode(
|
svc_start_mode = osutils.get_service_start_mode(
|
||||||
_W32TIME_SERVICE)
|
_W32TIME_SERVICE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user