خرید بک لینک

Vote count: 0

I am kinda stuck here.

.
.
.
for region in regions:
    coection=ec2.coect_to_region(region)
    print coection
    sg=coection.get_all_security_groups()
    print sg
    try:
        for securityGroup in sg:
           for rule in securityGroup.rules:

This results in the following

    EC2Coection:ec2.us-west-2.amazonaws.com
    [SecurityGroup: too many sec groups here.........]
None
Traceback (most recent call last):
  File "aws_sec_scan.py", line 29, in <module>
    sg=coection.get_all_security_groups()
AttributeError: 'NoneType' object has no attribute 'get_all_security_groups'

why am i getting that "None"?

asked 38 secs ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 7 ارديبهشت 1395 ساعت: 13:09

صفحه بندی