Avoid global

This commit is contained in:
Mircea Ulinic 2017-03-16 15:55:05 +00:00
parent 7410f201bd
commit 451b9e70e5

View File

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