ソースを参照

expand the host node name option on includes

Paul Lockaby 9 年 前
コミット
67e9c89294
1 ファイル変更3 行追加1 行削除
  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)