Conditions | 1 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | from boto.ec2.elb import HealthCheck |
||
20 | def populate_elb_health_check(kwargs): |
||
21 | |||
22 | healthy_threshold = kwargs['healthy_threshold'] |
||
23 | interval = kwargs['interval'] |
||
24 | unhealthy_threshold = kwargs['unhealthy_threshold'] |
||
25 | target_value = kwargs['target'] |
||
26 | |||
27 | health_check = HealthCheck(interval=int(healthy_threshold), |
||
28 | healthy_threshold=int(interval), |
||
29 | unhealthy_threshold=int(unhealthy_threshold), |
||
30 | target=target_value) |
||
31 | |||
32 | del kwargs['healthy_threshold'] |
||
33 | del kwargs['interval'] |
||
34 | del kwargs['unhealthy_threshold'] |
||
35 | del kwargs['target'] |
||
36 | |||
37 | kwargs['health_check'] = health_check |
||
38 |