Preventing servers that are deleted and left in the deleted state from being included in the server list
This commit is contained in:
parent
eb3f28effc
commit
c054a058c0
1 changed files with 3 additions and 1 deletions
|
@ -98,6 +98,8 @@ def rax_facts(module, address, name, server_id):
|
|||
except Exception, e:
|
||||
pass
|
||||
|
||||
servers[:] = [server for server in servers if server.status != "DELETED"]
|
||||
|
||||
if len(servers) > 1:
|
||||
module.fail_json(msg='Multiple servers found matching provided '
|
||||
'search parameters')
|
||||
|
|
Loading…
Reference in a new issue