fix: ansible task 500

pull/11146/head
feng 2023-08-01 15:38:08 +08:00 committed by Bryan
parent 6b333adc05
commit 681988f450
1 changed files with 1 additions and 1 deletions

View File

@ -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