mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Avoid global
This commit is contained in:
parent
7410f201bd
commit
451b9e70e5
@ -210,7 +210,6 @@ def _get_services_mapping():
|
||||
'''
|
||||
if _SERVICES:
|
||||
return _SERVICES
|
||||
global _SERVICES
|
||||
services_txt = ''
|
||||
try:
|
||||
with salt.utils.fopen('/etc/services', 'r') as srv_f:
|
||||
|
Loading…
Reference in New Issue
Block a user