mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 13:50:22 -07:00
Make ansible-galaxy work as expected
This change fixes hg galaxy roles Roles also get installed if roles path is missing, which the tests currently require (fixes #8950)
This commit is contained in:
parent
a9b5b1bf55
commit
537472f42c
2 changed files with 3 additions and 12 deletions
|
@ -704,14 +704,6 @@ def execute_install(args, options, parser):
|
|||
print "- please specify a user/role name, or a roles file, but not both"
|
||||
sys.exit(1)
|
||||
|
||||
# error checking to ensure the specified roles path exists and is a directory
|
||||
if not os.path.exists(roles_path):
|
||||
print "- the specified role path %s does not exist" % roles_path
|
||||
sys.exit(1)
|
||||
elif not os.path.isdir(roles_path):
|
||||
print "- the specified role path %s is not a directory" % roles_path
|
||||
sys.exit(1)
|
||||
|
||||
roles_done = []
|
||||
if role_file:
|
||||
f = open(role_file, 'r')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue