communishift: Configure AWS EFS to continue on fail

Signed-off-by: David Kirwan <dkirwan@redhat.com>
Signed-off-by: Lenka Segura <lsegura@redhat.com>
Signed-off-by: Patrik Polakovic <ppolakov@redhat.com>
This commit is contained in:
David Kirwan 2022-08-16 15:29:22 +01:00
parent b1a0394649
commit e9bced043b
2 changed files with 2 additions and 2 deletions

View file

@ -151,7 +151,7 @@ def run_module():
module.exit_json(**result)
except efs_client.exceptions.AccessPointAlreadyExists:
result["message"] = "AWS EFS AccessPoint already exists."
module.fail_json(**result)
module.fail_json("", **result)
def main():

View file

@ -28,7 +28,7 @@
aws_region: "{{ communishift_region }}"
aws_efs_filesystem_id: "{{ create_efs_filesystem_response['efs']['file_system_id'] }}"
register: create_efs_accesspoint_response
ignore_errors: true
- name: Print the response from the AWS EFS AccessPoint creation
debug: