mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Fail if specifying an ENI as device but in_vpc is not true
This commit is contained in:
@@ -382,6 +382,8 @@ def main():
|
||||
if device_id and device_id.startswith('i-'):
|
||||
is_instance = True
|
||||
elif device_id:
|
||||
if device_id.startswith('eni-') and not in_vpc:
|
||||
module.fail_json(msg="If you are specifying an ENI, in_vpc must be true")
|
||||
is_instance = False
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user