Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

get_all_spot_instance_requests throws warning if length of security group id is not 11 #3825

Open
sanket-singhal opened this issue Aug 16, 2018 · 0 comments

Comments

@sanket-singhal
Copy link

get_all_spot_instance_requests throws warning if length of security group id is not 11. This shouldn't throw a warning as SGs id can be of length 20 as well as per latest standards. \

Culprit code:

if filters:
            if 'launch.group-id' in filters:
                lgid = filters.get('launch.group-id')
                if not lgid.startswith('sg-') or len(lgid) != 11:
                    warnings.warn(
                        "The 'launch.group-id' filter now requires a security "
                        "group id (sg-*) and no longer supports filtering by "
                        "group name. Please update your filters accordingly.",
                        UserWarning)
            self.build_filter_params(params, filters)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant