Skip to content

Commit fc91379

Browse files
committed
Add the AWSCommand to ProxyRotator
1 parent 10e34e6 commit fc91379

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rotate_proxies.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import json
1717
import email_report
1818

19-
from utils import daemonize, randpass, enum, LinodeCommand
19+
from utils import daemonize, randpass, enum, LinodeCommand, AWSCommand
2020

2121
# Rotation Policies
2222
Policy = enum('ROTATION_RANDOM',
@@ -287,6 +287,8 @@ def __init__(self, cfg='proxy.conf', test_mode=False, rotate=False, region=None)
287287
self.hbf = '.heartbeat'
288288
# Linode creation class
289289
self.linode_cmd = LinodeCommand(verbose=True, config=self.config)
290+
#AWS resource manager
291+
self.aws_command = AWSCommand(config=self.config)
290292
# If rotate is set, rotate before going to sleep
291293
if rotate:
292294
print 'Rotating a node'

0 commit comments

Comments
 (0)