Explorar el Código

Merge pull request #737 from plockaby/expand-host-node-name

expand the host node name option on includes
Mike Naberezny hace 9 años
padre
commit
bba1c5c2fa
Se han modificado 1 ficheros con 3 adiciones y 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)