From 4e71690bf3a8971d918b86c627bb63a664b221eb Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Mon, 19 Dec 2016 16:55:57 -0500 Subject: [PATCH] only print dep warn for rax --- awx/main/management/commands/inventory_import.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/main/management/commands/inventory_import.py b/awx/main/management/commands/inventory_import.py index 797a211b79..b4d1493c5a 100644 --- a/awx/main/management/commands/inventory_import.py +++ b/awx/main/management/commands/inventory_import.py @@ -1256,7 +1256,8 @@ class Command(NoArgsCommand): ''' TODO: Remove this deprecation when we remove support for rax.py ''' - self.logger.info("Rackspace inventory sync is Deprecated in Tower 3.1.0 and support for Rackspace will be removed in a future release.") + if self.source == "rax.py": + self.logger.info("Rackspace inventory sync is Deprecated in Tower 3.1.0 and support for Rackspace will be removed in a future release.") begin = time.time() self.load_inventory_from_database()