mirror of
https://github.com/ansible/awx.git
synced 2026-03-02 09:18:48 -03:30
Don't return error messages for license errors
Just log the exception and return None.
This commit is contained in:
@@ -105,11 +105,11 @@ def gather(dest=None, module=None, subset = None, since = None, until = now(), c
|
|||||||
|
|
||||||
if _valid_license() is False:
|
if _valid_license() is False:
|
||||||
logger.exception("Invalid License provided, or No License Provided")
|
logger.exception("Invalid License provided, or No License Provided")
|
||||||
return "Error: Invalid License provided, or No License Provided"
|
return None
|
||||||
|
|
||||||
if collection_type != 'dry-run' and not settings.INSIGHTS_TRACKING_STATE:
|
if collection_type != 'dry-run' and not settings.INSIGHTS_TRACKING_STATE:
|
||||||
logger.error("Automation Analytics not enabled. Use --dry-run to gather locally without sending.")
|
logger.error("Automation Analytics not enabled. Use --dry-run to gather locally without sending.")
|
||||||
return
|
return None
|
||||||
|
|
||||||
collector_list = []
|
collector_list = []
|
||||||
if module:
|
if module:
|
||||||
|
|||||||
Reference in New Issue
Block a user