Skip to content

Commit e75ebfa

Browse files
committed
fixed conflicts
2 parents b6a6bef + 9e76187 commit e75ebfa

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Chaosfile.json

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
],
66
"disableForASGs": [
77
],
8+
"enableForTags": [
9+
{
10+
"key": "chaos_monkey",
11+
"value": "true"
12+
}
13+
],
814
"slackWebhook": [
915
{
1016
"channel": "#random",

lambda/index.js

100644100755
+8
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ ec2.describeInstances(function(err, data) {
5151
}
5252
}
5353
}
54+
} else {
55+
if (llamaConfig.enableForTags) {
56+
llamaConfig.enableForTags.forEach(function(asgTags) {
57+
if (asgTags.key == tag.Key && asgTags.value == tag.Value) {
58+
candidates.push(inst);
59+
}
60+
});
61+
}
5462
}
5563
});
5664
});

0 commit comments

Comments
 (0)