From 240b65ddda85706d9fac330c711ff257c9ad840e Mon Sep 17 00:00:00 2001
From: joren485 <jorenvrancken@gmail.com>
Date: Tue, 31 Jul 2018 00:27:13 +0200
Subject: [PATCH] Fix an unreachable else statement (#43463)

---
 lib/ansible/modules/cloud/amazon/aws_ssm_parameter_store.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/ansible/modules/cloud/amazon/aws_ssm_parameter_store.py b/lib/ansible/modules/cloud/amazon/aws_ssm_parameter_store.py
index a3e4ea07db..f075456a66 100644
--- a/lib/ansible/modules/cloud/amazon/aws_ssm_parameter_store.py
+++ b/lib/ansible/modules/cloud/amazon/aws_ssm_parameter_store.py
@@ -153,7 +153,7 @@ def create_update_parameter(client, module):
         Type=module.params.get('string_type')
     )
 
-    if (module.params.get('overwrite_value') == "always" or "changed"):
+    if (module.params.get('overwrite_value') in ("always", "changed")):
         args.update(Overwrite=True)
     else:
         args.update(Overwrite=False)