Use PortOpt for port option

... to ensure that the given value is a valid port number within
the accepted range.

Change-Id: I0e8dda96d382c7ed931de9133eff65dcae13ae5d
This commit is contained in:
Takashi Kajinami
2025-05-27 23:54:02 +09:00
parent b558e39368
commit c346ad04b7

View File

@@ -45,7 +45,7 @@ influx_storage_opts = [
cfg.StrOpt('retention_policy', default='autogen',
help='Retention policy to use'),
cfg.StrOpt('host', help='InfluxDB host', default='localhost'),
cfg.IntOpt('port', help='InfluxDB port', default=8086),
cfg.PortOpt('port', help='InfluxDB port', default=8086),
cfg.BoolOpt(
'use_ssl',
help='Set to true to use ssl for influxDB connection. '