Merge branch 'devel' into cyberark-ccp-branding-webserviceid

This commit is contained in:
Joe Garcia
2022-11-10 20:50:02 -05:00
committed by GitHub
73 changed files with 204284 additions and 259 deletions

View File

@@ -114,7 +114,12 @@ def main():
# Update the project
result = module.post_endpoint(project['related']['update'])
if result['status_code'] != 202:
if result['status_code'] == 405:
module.fail_json(
msg="Unable to trigger a project update because the project scm_type ({0}) does not support it.".format(project['scm_type']),
response=result
)
elif result['status_code'] != 202:
module.fail_json(msg="Failed to update project, see response for details", response=result)
module.json_output['changed'] = True