perf: 修改 inventory

This commit is contained in:
ibuler
2023-08-01 10:39:34 +08:00
committed by Bryan
parent b93b64255b
commit 5207b99696
2 changed files with 9 additions and 4 deletions

View File

@@ -43,8 +43,8 @@ def get_parent_keys(key, include_self=True):
class JMSPermedInventory(JMSInventory):
def __init__(self, assets, account_policy='privileged_first',
account_prefer='root,Administrator', host_callback=None, exclude_localhost=False, user=None):
super().__init__(assets, account_policy, account_prefer, host_callback, exclude_localhost)
account_prefer='root,Administrator', host_callback=None, user=None):
super().__init__(assets, account_policy, account_prefer, host_callback, exclude_localhost=True)
self.user = user
self.assets_accounts_mapper = self.get_assets_accounts_mapper()