Skip to content

Commit 6577d5d

Browse files
author
Dougal Ballantyne
committed
Merge branch 'master' into develop
2 parents 149525d + 7df55bc commit 6577d5d

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

cli/README

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,27 @@
1-
cfncluster is an example framework for launching clusters.
1+
cfncluster is an example framework for launching clusters.
2+
3+
usage: cfncluster [-h] [--config CONFIG_FILE] [--region REGION] [--nowait]
4+
{create,update,stop,delete,status,list,instances,sshmaster}
5+
...
6+
7+
cfncluster is the a tool to launch and manage cluster.
8+
9+
positional arguments:
10+
{create,update,stop,delete,status,list,instances,sshmaster}
11+
create creates a cluster
12+
update update a running cluster
13+
stop stop a cluster
14+
delete delete a cluster
15+
status pull the current status of the cluster
16+
list display a list of stacks associated with cfncluster
17+
instances display a list of all instances in a cluster
18+
sshmaster ssh to Master instance
19+
20+
optional arguments:
21+
-h, --help show this help message and exit
22+
--config CONFIG_FILE, -c CONFIG_FILE
23+
specify a alternative config file
24+
--region REGION, -r REGION
25+
specify a specific region to connect to
26+
--nowait, -nw do not wait for stack events, after executing stack
27+
command

node/src/sqswatcher/sqswatcher.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import boto.ec2
2323
import boto.dynamodb
2424
import boto.dynamodb2
25+
import boto.dynamodb2.exceptions
2526
import boto.exception
2627
import daemon
2728
import daemon.pidfile
@@ -143,7 +144,7 @@ def pollQueue():
143144

144145
item.delete()
145146

146-
except TypeError:
147+
except boto.dynamodb2.exceptions.ItemNotFound:
147148
print ("Did not find %s in the metadb\n" % instanceId)
148149

149150
q.delete_message(result)

0 commit comments

Comments
 (0)