mirror of https://github.com/jumpserver/jumpserver
fix: ansible task 500
parent
bd1db91e99
commit
37f04720e3
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue