From 71a1200f64cbe60fe2123e19ea1a9035f97615e0 Mon Sep 17 00:00:00 2001 From: Oleksii Kliukin Date: Wed, 29 Jul 2015 12:09:17 +0200 Subject: [PATCH] Fix a mistake in checking for the number of parameters. --- scripts/aws.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/aws.py b/scripts/aws.py index b5e87fd7..b172a8c3 100755 --- a/scripts/aws.py +++ b/scripts/aws.py @@ -66,7 +66,7 @@ class AWSConnection: if __name__ == '__main__': - if len(sys.argv) != 4 and sys.argv[1] in ('on_start', 'on_stop', 'on_role_change'): + if len(sys.argv) == 4 and sys.argv[1] in ('on_start', 'on_stop', 'on_role_change'): AWSConnection(cluster_name=sys.argv[3]).on_role_change(sys.argv[2]) else: sys.exit("Usage: {0} action role name".format(sys.argv[0]))