mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 09:27:36 -02:30
Merge pull request #40 from chrismeyersfsu/fix-inventory_update_license_expired
fixed inventory source update # license hosts check
This commit is contained in:
@@ -1219,7 +1219,7 @@ class InventoryUpdate(UnifiedJob, InventorySourceOptions):
|
|||||||
|
|
||||||
def save(self, *args, **kwargs):
|
def save(self, *args, **kwargs):
|
||||||
update_fields = kwargs.get('update_fields', [])
|
update_fields = kwargs.get('update_fields', [])
|
||||||
if bool('license' 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):
|
'exceeded' in self.result_stdout and not self.license_error):
|
||||||
self.license_error = True
|
self.license_error = True
|
||||||
if 'license_error' not in update_fields:
|
if 'license_error' not in update_fields:
|
||||||
|
|||||||
Reference in New Issue
Block a user