8000 some change that will be merged.. · prometheus/client_python@3c79a56 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3c79a56

Browse files
committed
some change that will be merged..
Signed-off-by: Vladimír Kašpar <vladimir.kaspar@heureka.cz>
1 parent ec84762 commit 3c79a56

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

prometheus_client/multiprocess.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from .utils import floatToGoString
1414

1515

16-
PATH = None
16+
PATH = os.environ.get('prometheus_multiproc_dir')
1717

1818

1919
class MultiProcessCollector(object):
@@ -24,8 +24,6 @@ def __init__(self, registry, path=None):
2424

2525
if path is not None:
2626
PATH = path
27-
elif 'prometheus_multiproc_dir' in os.environ:
28-
PATH = os.environ['prometheus_multiproc_dir']
2927

3028
if not PATH or not os.path.isdir(PATH):
3129
raise ValueError('Any prometheus multiprocess dictionary is not set or not a directory.')

0 commit comments

Comments
 (0)
0