When create a security group, the duplicate name is allowed.
In create a instance, which security group to use is designed by sg name, this may cause the user don't know witch sg is used and it may be not the user wanted. So the duplicate name of sg should be not allowed.
In create instance, it's use set to filter the duplicate sg like:
sg_names = list(set(sg_names))
When create a security group, the duplicate name is allowed.
In create a instance, which security group to use is designed by sg name, this may cause the user don't know witch sg is used and it may be not the user wanted. So the duplicate name of sg should be not allowed.
In create instance, it's use set to filter the duplicate sg like:
sg_names = list(set(sg_names))