This commit is contained in:
DingZQ
2025-04-23 21:58:41 +08:00
parent 17c0d6d634
commit 183c5a2bad

View File

@@ -3362,7 +3362,7 @@ if __name__ == "__main__":
client = InfluxDBClient(url=url, token=token) client = InfluxDBClient(url=url, token=token)
# step1: 检查连接状态初始化influxdb的buckets # step1: 检查连接状态初始化influxdb的buckets
try: try:
# delete_buckets(org_name) delete_buckets(org_name)
create_and_initialize_buckets(org_name) create_and_initialize_buckets(org_name)
except Exception as e: except Exception as e:
print(f"连接失败: {e}") print(f"连接失败: {e}")