only print dep warn for rax

This commit is contained in:
Chris Meyers 2016-12-19 16:55:57 -05:00
parent 5d9d332792
commit 4e71690bf3

View File

@ -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()