mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 20:31:27 -07:00
openstack: drop some reference to shade (#47359)
shade is not used anymore by the `os_*` modules. PR #40532 replaces `shade` library by `openstacksdk`. This commit clean up some references to the old library. It's similiar to what has been done in PR #40784.
This commit is contained in:
parent
b7e77c4274
commit
30b6bb34cd
4 changed files with 7 additions and 13 deletions
|
@ -625,11 +625,7 @@ def _check_security_groups(module, cloud, server):
|
|||
return changed, server
|
||||
|
||||
module_security_groups = set(module.params['security_groups'])
|
||||
# Workaround a bug in shade <= 1.20.0
|
||||
if server.security_groups is not None:
|
||||
server_security_groups = set(sg.name for sg in server.security_groups)
|
||||
else:
|
||||
server_security_groups = set()
|
||||
server_security_groups = set(sg.name for sg in server.security_groups)
|
||||
|
||||
add_sgs = module_security_groups - server_security_groups
|
||||
remove_sgs = server_security_groups - module_security_groups
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue