mirror of
https://github.com/ansible/awx.git
synced 2026-03-10 14:09:28 -02:30
flake8
This commit is contained in:
@@ -1218,7 +1218,7 @@ class InventoryUpdate(UnifiedJob, InventorySourceOptions):
|
|||||||
update_fields = kwargs.get('update_fields', [])
|
update_fields = kwargs.get('update_fields', [])
|
||||||
if bool(('license' in self.result_stdout or 'licensed' in self.result_stdout) and
|
if bool(('license' in self.result_stdout or 'licensed' in self.result_stdout) and
|
||||||
'exceeded' in self.result_stdout and not self.license_error) or \
|
'exceeded' in self.result_stdout and not self.license_error) or \
|
||||||
bool('License has expired' in self.result_stdout or 'License count exceeded'):
|
bool('License has expired' in self.result_stdout or 'License count exceeded'):
|
||||||
self.license_error = True
|
self.license_error = True
|
||||||
if 'license_error' not in update_fields:
|
if 'license_error' not in update_fields:
|
||||||
update_fields.append('license_error')
|
update_fields.append('license_error')
|
||||||
|
|||||||
Reference in New Issue
Block a user