Last active
August 29, 2015 13:55
-
-
Save soulston/8716383 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if bootUp.args.instanceType in ["All", "ebs-vol"]: | |
reportLines = [] | |
mainLogger.info ("Looking for EBS Volumes in region: %s." % (region.name)) | |
conEC2 = boto.ec2.connect_to_region (region.name, | |
aws_access_key_id=bootUp.args.awsAccessKey, | |
aws_secret_access_key=bootUp.args.awsSecretKey) | |
for ebsvolume in conEC2.get_all_volumes (): | |
rl = lnAwsEBSVolumeReportLine (region.name, "ebs-vol", ebsvolume.id) | |
rl.furtherInfo (ebsvolume) | |
mainLogger.info ("Processed details for: %s." % (rl)) | |
reportLines.append (rl) | |
if len(reportLines) > 0: | |
bootUp.showTable (reportLines, rl.headings ()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To my knowledge reportLines is empty and this need to filled, When it is filled this need to be store in a variable.
after that this variable need to inputted into this section:
def sendEmail (self):
that im not sure on how to do :(