Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions mapall.py
Original file line number Diff line number Diff line change
Expand Up @@ -1070,11 +1070,12 @@ def rank(self, fh):
def inVpc(self, vpc):
if vpc:
subnets = self.data.vpc_zone_identifier
for subnet in subnets.split(','):
# sys.stderr.write(subnet)
if vpc and subnet in objects and objects[subnet].data.vpc_id == vpc:
return True
return False
if subnets is not None:
for subnet in subnets.split(','):
# sys.stderr.write(subnet)
if vpc and subnet in objects and objects[subnet].data.vpc_id == vpc:
return True
return False
return True


Expand Down Expand Up @@ -1436,7 +1437,7 @@ def main():
return
if args.iterate:
for o in objects.keys():
if o.startswith(args.iterate):
if o is not None and o.startswith(args.iterate):
f = open('%s.dot' % o, 'w')
setattr(args, args.iterate, o)
generate_map(f, args)
Expand Down