Skip to content

Commit a94f071

Browse files
author
Jean Baptiste Favre
committed
Update php_fpm for 0.0.9
1 parent 8b66b85 commit a94f071

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

scripts/php_fpm.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -556,9 +556,7 @@ def _parse_args(self):
556556
return parser.parse_args()
557557

558558
def _init_probe(self):
559-
if self.options.host == 'localhost':
560-
self.options.host = socket.getfqdn()
561-
self.hostname = self.options.host
559+
self.hostname = socket.getfqdn()
562560

563561
def _get_discovery(self):
564562
self.discovery_key = 'php-fpm.pools.discovery'
@@ -645,4 +643,4 @@ def _get_metrics(self):
645643
if __name__ == '__main__':
646644
ret = PhpFpm().run()
647645
print ret
648-
sys.exit(ret)
646+
sys.exit(ret)

0 commit comments

Comments
 (0)