fix: ansible task 500

pull/11533/head
feng 2023-08-01 15:38:08 +08:00 committed by Bryan
parent bd1db91e99
commit 37f04720e3
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,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