stubs and docs for management cmd renames

This commit is contained in:
AlanCoding
2017-08-07 12:20:56 -04:00
parent 79e2b995d2
commit d41d9a957e
5 changed files with 58 additions and 10 deletions

View File

@@ -0,0 +1,17 @@
# Copyright (c) 2017 Ansible by Red Hat
# All Rights Reserved
# Borrow from another AWX command
from awx.main.management.commands.provision_instance import Command as OtherCommand
# Python
import warnings
class Command(OtherCommand):
def handle(self, *args, **options):
# TODO: delete this entire file in 3.3
warnings.warn('This command is replaced with `provision_instance` and will '
'be removed in release 3.3.')
return super(Command, self).handle(*args, **options)