Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Fixed the none idempotency for multiple nics #58509
When a server is created with multiple nics which holds security groups, module was applying default SG to the server & remove SG on the nics.
This fixe propose to mutually exclude SG & nics: We can apply SG on nics OR on server directly in order to keep idempotency.
Openstak python library expected no security groups send when this field is not filled and the module was filling the security_groups field with an array which contains the default SG. So during the exchange, library was executing the array by default so it removed all security groups on nics. I modified it for None as a default value.
referenced this pull request
Jun 28, 2019