From 08f4b0cbf3a33db238719d9a36a2a7eccaf3ff6b Mon Sep 17 00:00:00 2001 From: "J. Q" <55899496+jawadqur@users.noreply.github.com> Date: Mon, 1 Apr 2024 11:54:41 -0500 Subject: [PATCH] Fix logic in error handling of instance profile (#103) --- hatchery/nextflow.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hatchery/nextflow.go b/hatchery/nextflow.go index c048fa64..a9066248 100644 --- a/hatchery/nextflow.go +++ b/hatchery/nextflow.go @@ -770,8 +770,9 @@ func createEcsInstanceProfile(iamSvc *iam.IAM, name string) (*string, error) { if err != nil { return nil, err } + } else { + return nil, err } - return nil, err } // Create the IAM role