We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b66b85 commit a94f071Copy full SHA for a94f071
scripts/php_fpm.py
@@ -556,9 +556,7 @@ def _parse_args(self):
556
return parser.parse_args()
557
558
def _init_probe(self):
559
- if self.options.host == 'localhost':
560
- self.options.host = socket.getfqdn()
561
- self.hostname = self.options.host
+ self.hostname = socket.getfqdn()
562
563
def _get_discovery(self):
564
self.discovery_key = 'php-fpm.pools.discovery'
@@ -645,4 +643,4 @@ def _get_metrics(self):
645
643
if __name__ == '__main__':
646
644
ret = PhpFpm().run()
647
print ret
648
- sys.exit(ret)
+ sys.exit(ret)
0 commit comments