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

This commit is contained in:
Cesar Francisco San Nicolas Martinez
2022-11-08 18:42:10 +01:00
committed by GitHub
62 changed files with 204125 additions and 197 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