mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Mass nuke deprecated items that are easily removed. ci_complete (#44320)
This commit is contained in:
@@ -358,14 +358,7 @@ class GalaxyCLI(CLI):
|
||||
msg = "Unable to load data from the include requirements file: %s %s"
|
||||
raise AnsibleError(msg % (role_file, e))
|
||||
else:
|
||||
display.deprecated("going forward only the yaml format will be supported", version="2.6")
|
||||
# roles listed in a file, one per line
|
||||
for rline in f.readlines():
|
||||
if rline.startswith("#") or rline.strip() == '':
|
||||
continue
|
||||
display.debug('found role %s in text file' % str(rline))
|
||||
role = RoleRequirement.role_yaml_parse(rline.strip())
|
||||
roles_left.append(GalaxyRole(self.galaxy, **role))
|
||||
raise AnsibleError("Invalid role requirements file")
|
||||
f.close()
|
||||
except (IOError, OSError) as e:
|
||||
raise AnsibleError('Unable to open %s: %s' % (role_file, str(e)))
|
||||
|
||||
Reference in New Issue
Block a user