Skip to content

Commit

Permalink
Merge pull request #103 from kuettai/main
Browse files Browse the repository at this point in the history
Improve EFS NoPolicyFound handling
  • Loading branch information
kuettai authored May 17, 2024
2 parents 9a9f90d + 2c71172 commit 638cea0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions services/ec2/drivers/Ec2Instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ def getImageInfo(self):
imageId = self.ec2InstanceData['ImageId']
resp = self.ec2Client.describe_images(ImageIds=[imageId])
images = resp.get('Images')

self.ec2ImageInfo = None
for image in images:
self.ec2ImageInfo = image

Expand Down
2 changes: 1 addition & 1 deletion services/efs/drivers/EfsDriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def _checkBackupPolicy(self):
backup = self.efs_client.describe_backup_policy(
FileSystemId=efs_id
)
except botocore.exceptions.PolicyNotFound as e:
except self.efs_client.exceptions.PolicyNotFound as e:
print("(Not showstopper): Error encounter during efs describe_backup_policy {}".format(e.response['Error']['Code']))
return

Expand Down
5 changes: 5 additions & 0 deletions templates/sidebar.postcustom.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<p>Raise Issues</p>
</a>
</li>
<li class="nav-item">
<a href="https://github.com/aws-samples/service-screener-v2" target="_blank" rel="noopener noreferrer" class="nav-link">
<i class="nav-icon fas fa-star" style="color: gold;"></i>Give us a Star<i class="nav-icon fas fa-star" style="color: gold;"></i>
</a>
</li>
</ul>
</nav>
</div>
Expand Down

0 comments on commit 638cea0

Please sign in to comment.