Island: Remove updating agent configuration with stolen credentials

This commit is contained in:
vakaris_zilius 2022-06-09 09:15:25 +00:00 committed by vakarisz
parent f5134f1d3b
commit dabc3cb004
1 changed files with 0 additions and 4 deletions

View File

@ -153,10 +153,6 @@ class ConfigService:
item_value = get_datastore_encryptor().encrypt(item_value)
mongo.db.config.find_one().update({"$addToSet": {item_key: item_value}}, upsert=False)
mongo.db.monkey.update(
{}, {"$addToSet": {"config." + item_key.split(".")[-1]: item_value}}, multi=True
)
@staticmethod
def creds_add_username(username):
ConfigService.add_item_to_config_set_if_dont_exist(