Skip to content

Commit

Permalink
fix(mongodb): 迁移元数据安装dbmon修复 #8119
Browse files Browse the repository at this point in the history
  • Loading branch information
yyhenryyy authored and iSecloud committed Nov 22, 2024
1 parent 7bbd935 commit e399964
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from backend import env
from backend.configuration.constants import DBType
from backend.db_package.models import Package
from backend.flow.consts import MediumEnum, MongoDBManagerUser
from backend.flow.consts import MediumEnum
from backend.flow.engine.bamboo.scene.common.builder import Builder
from backend.flow.engine.bamboo.scene.mongodb.base_flow import MongoBaseFlow
from backend.flow.engine.bamboo.scene.mongodb.sub_task.install_dbmon_sub import (
Expand Down Expand Up @@ -77,8 +77,8 @@ def add_install_dbmon(root_id, flow_data, pipeline, iplist, bk_cloud_id, allow_e
if not allow_empty_instance and not instances:
raise Exception("no instance found, ip_list:{}".format(iplist))

result = MongoNodeWithLabel.append_password(instances, MongoDBManagerUser.MonitorUser.value)
logger.debug("append_password result:{}".format(result))
# result = MongoNodeWithLabel.append_password(instances, MongoDBManagerUser.MonitorUser.value)
# logger.debug("append_password result:{}".format(result))
# group by ip
instances_by_ip = defaultdict(list)
for instance in instances:
Expand Down

0 comments on commit e399964

Please sign in to comment.