diff options
author | Jhon Honce <jhonce@redhat.com> | 2015-03-20 09:36:34 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2015-03-24 11:23:25 -0700 |
commit | 14b19e665b118349327a5c8c219cc49c96ae1d52 (patch) | |
tree | 4b6ef0d07c8604209d483a9b880010457a4852c6 /bin | |
parent | 2147b1608140f2688ac9781b394824c04e55d07e (diff) | |
download | openshift-14b19e665b118349327a5c8c219cc49c96ae1d52.tar.gz openshift-14b19e665b118349327a5c8c219cc49c96ae1d52.tar.bz2 openshift-14b19e665b118349327a5c8c219cc49c96ae1d52.tar.xz openshift-14b19e665b118349327a5c8c219cc49c96ae1d52.zip |
* Replace asserts with raises
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/cluster | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/cluster b/bin/cluster index ce17ee6d7..af908155c 100755 --- a/bin/cluster +++ b/bin/cluster @@ -43,7 +43,7 @@ class Cluster(object): inventory = '-i inventory/aws/ec2.py' else: # this code should never be reached - assert False, "invalid PROVIDER {}".format(self.args.provider) + raise argparse.ArgumentError("invalid PROVIDER {}".format(self.args.provider)) env = {'cluster_id': self.args.cluster_id} @@ -62,7 +62,7 @@ class Cluster(object): raise argparse.ArgumentError("ACTION {} not implemented".format(self.args.action)) else: # this code should never be reached - assert False, "invalid ACTION {}".format(self.args.action) + raise argparse.ArgumentError("invalid ACTION {}".format(self.args.action)) verbose = '' if self.args.verbose > 0: |