From 73a9ad9aea2f203395565175a6a2fc28e1837da0 Mon Sep 17 00:00:00 2001 From: Sam Doran Date: Wed, 29 Jul 2020 12:05:12 -0400 Subject: [PATCH] ansiballz - remove deprecated excommunicate command (#70921) --- changelogs/fragments/ansiballz-remove-excommunicate.yaml | 2 ++ lib/ansible/executor/module_common.py | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) create mode 100644 changelogs/fragments/ansiballz-remove-excommunicate.yaml diff --git a/changelogs/fragments/ansiballz-remove-excommunicate.yaml b/changelogs/fragments/ansiballz-remove-excommunicate.yaml new file mode 100644 index 00000000000..71844284816 --- /dev/null +++ b/changelogs/fragments/ansiballz-remove-excommunicate.yaml @@ -0,0 +1,2 @@ +minor_changes: + - remove ``excommunicate`` debug command from AnsiballZ diff --git a/lib/ansible/executor/module_common.py b/lib/ansible/executor/module_common.py index 434464baeef..1bb97e4738e 100644 --- a/lib/ansible/executor/module_common.py +++ b/lib/ansible/executor/module_common.py @@ -237,10 +237,6 @@ def _ansiballz_main(): basedir = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'debug_dir') args_path = os.path.join(basedir, 'args') - if command == 'excommunicate': - print('The excommunicate debug command is deprecated and will be removed in 2.11. Use execute instead.') - command = 'execute' - if command == 'explode': # transform the ZIPDATA into an exploded directory of code and then # print the path to the code. This is an easy way for people to look