Remove deprecated tags config option (#44479)

* Remove deprecated tags config option

* wordsmith porting guide entry

acozine via github
This commit is contained in:
Toshio Kuratomi
2018-08-21 12:57:06 -07:00
committed by Matt Martz
parent 18f361ecdd
commit 0e7b470a01
4 changed files with 22 additions and 26 deletions

View File

@@ -583,13 +583,6 @@ class CLI(with_metaclass(ABCMeta, object)):
# optparse defaults does not do what's expected
self.options.tags = ['all']
if hasattr(self.options, 'tags') and self.options.tags:
if not C.MERGE_MULTIPLE_CLI_TAGS:
if len(self.options.tags) > 1:
display.deprecated('Specifying --tags multiple times on the command line currently uses the last specified value. '
'In 2.4, values will be merged instead. Set merge_multiple_cli_tags=True in ansible.cfg to get this behavior now.',
version=2.5, removed=False)
self.options.tags = [self.options.tags[-1]]
tags = set()
for tag_set in self.options.tags:
for tag in tag_set.split(u','):
@@ -598,13 +591,6 @@ class CLI(with_metaclass(ABCMeta, object)):
# process skip_tags
if hasattr(self.options, 'skip_tags') and self.options.skip_tags:
if not C.MERGE_MULTIPLE_CLI_TAGS:
if len(self.options.skip_tags) > 1:
display.deprecated('Specifying --skip-tags multiple times on the command line currently uses the last specified value. '
'In 2.4, values will be merged instead. Set merge_multiple_cli_tags=True in ansible.cfg to get this behavior now.',
version=2.5, removed=False)
self.options.skip_tags = [self.options.skip_tags[-1]]
skip_tags = set()
for tag_set in self.options.skip_tags:
for tag in tag_set.split(u','):