From 76ad9720dd72718c4f9fb503c3896ee69265677e Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Tue, 27 Jan 2015 08:58:30 -0500 Subject: [PATCH] fixed inventory source update # license hosts check --- awx/main/models/inventory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/models/inventory.py b/awx/main/models/inventory.py index 494dd11afb..60e19724a0 100644 --- a/awx/main/models/inventory.py +++ b/awx/main/models/inventory.py @@ -1219,7 +1219,7 @@ class InventoryUpdate(UnifiedJob, InventorySourceOptions): def save(self, *args, **kwargs): 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): self.license_error = True if 'license_error' not in update_fields: