From 67e9c8929462c6d88cddf69a10c8a1c96eef2a7a Mon Sep 17 00:00:00 2001 From: Paul Lockaby Date: Mon, 11 Apr 2016 06:02:35 +0000 Subject: [PATCH] expand the host node name option on includes --- supervisor/options.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/supervisor/options.py b/supervisor/options.py index 528f96cd2..2f0c98f1d 100644 --- a/supervisor/options.py +++ b/supervisor/options.py @@ -570,7 +570,9 @@ def read_config(self, fp): if need_close: fp.close() - expansions = {'here':self.here} + host_node_name = platform.node() + expansions = {'here':self.here, + 'host_node_name':host_node_name} expansions.update(self.environ_expansions) if parser.has_section('include'): parser.expand_here(self.here)