mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
now returns false on bad role_data
This commit is contained in:
parent
e81ec32719
commit
8153c34abf
1 changed files with 21 additions and 19 deletions
|
@ -182,6 +182,7 @@ class GalaxyRole(object):
|
|||
"""
|
||||
Downloads the archived role from github to a temp location
|
||||
"""
|
||||
if role_data:
|
||||
|
||||
# first grab the file and save it to a temp location
|
||||
if "github_user" in role_data and "github_repo" in role_data:
|
||||
|
@ -203,6 +204,7 @@ class GalaxyRole(object):
|
|||
# TODO: better urllib2 error handling for error
|
||||
# messages that are more exact
|
||||
self.display.error("failed to download the file.")
|
||||
|
||||
return False
|
||||
|
||||
def install(self, role_filename):
|
||||
|
|
Loading…
Reference in a new issue