From 1d0643d8db50ba0b22856b22d611cb499c99894c Mon Sep 17 00:00:00 2001 From: Jordan Guymon Date: Tue, 28 Nov 2017 15:06:49 -0800 Subject: [PATCH] Ensure s3 subcommands return RC 1 on failure --- awscli/customizations/s3/subcommands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awscli/customizations/s3/subcommands.py b/awscli/customizations/s3/subcommands.py index da30d6692e6d..2ce9ead2b75a 100644 --- a/awscli/customizations/s3/subcommands.py +++ b/awscli/customizations/s3/subcommands.py @@ -1082,7 +1082,7 @@ def run(self): rc = 0 if files[0].num_tasks_failed > 0: rc = 1 - if files[0].num_tasks_warned > 0: + elif files[0].num_tasks_warned > 0: rc = 2 return rc