def connect_to_influxdb(module):
hostname = module.params['hostname']
port = module.params['port']
username = module.params['username']
password = module.params['password']
database_name = module.params['database_name']
client = InfluxDBClient(
host=hostname,
port=port,
username=username,
password=password,
database=database_name
)
return client
influxdb_user.py 文件源码
python
阅读 17
收藏 0
点赞 0
评论 0
评论列表
文章目录