mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Fix PyLint C0103 on salt.utils.saltminionservice
. Refs #1775.
This commit is contained in:
parent
1d2cf21a5a
commit
409bc85c53
@ -27,7 +27,8 @@ class MinionService(Service):
|
||||
self.runflag = False
|
||||
self.log("Shutting down the Salt Minion")
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
def _main():
|
||||
servicename = 'salt-minion'
|
||||
try:
|
||||
status = win32serviceutil.QueryServiceStatus(servicename)
|
||||
@ -40,3 +41,7 @@ if __name__ == '__main__':
|
||||
win32serviceutil.StartService(servicename)
|
||||
else:
|
||||
win32serviceutil.StartService(servicename)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
_main()
|
||||
|
Loading…
Reference in New Issue
Block a user