Explorar o código

expand the host node name option on includes

Paul Lockaby %!s(int64=9) %!d(string=hai) anos
pai
achega
67e9c89294
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      supervisor/options.py

+ 3 - 1
supervisor/options.py

@@ -570,7 +570,9 @@ class ServerOptions(Options):
             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)