Skip to content

Commit

Permalink
fixup! ec2: Add RamMonitoring Instance attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasily Sovetov committed Jul 14, 2024
1 parent dfbef5b commit b5e0d82
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions boto/ec2/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1378,9 +1378,12 @@ def modify_instance_attribute(self, instance_id, attribute, value,
:return: Whether the operation succeeded or not
"""
# Allow a bool to be passed in for value of disableApiTermination
bool_reqs = ('disableapitermination',
'sourcedestcheck',
'ebsoptimized')
bool_reqs = (
'disableapitermination',
'sourcedestcheck',
'ebsoptimized',
'rammonitoring',
)
if attribute.lower() in bool_reqs:
if isinstance(value, bool):
if value:
Expand Down

0 comments on commit b5e0d82

Please sign in to comment.