From 681988f450fe6fe1a32da2d88a69d0f74d91fff6 Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Tue, 1 Aug 2023 15:38:08 +0800 Subject: [PATCH] fix: ansible task 500 --- apps/assets/automations/base/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/assets/automations/base/manager.py b/apps/assets/automations/base/manager.py index aa31c886f..2107e6e56 100644 --- a/apps/assets/automations/base/manager.py +++ b/apps/assets/automations/base/manager.py @@ -262,7 +262,7 @@ class BasePlaybookManager: info = self.file_to_json(runner.inventory) servers, not_valid = [], [] for k, host in info['all']['hosts'].items(): - jms_asset, jms_gateway = host['jms_asset'], host.get('gateway') + jms_asset, jms_gateway = host.get('jms_asset'), host.get('gateway') if not jms_gateway: continue