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:
Gonéri Le Bouder 2018-10-30 16:29:11 -04:00 committed by Alicia Cozine
parent b7e77c4274
commit 30b6bb34cd
4 changed files with 7 additions and 13 deletions

View file

@ -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