Preventing servers that are deleted and left in the deleted state from being included in the server list

reviewable/pr18780/r1
Brian Richards 9 years ago
parent c6d09d8f8d
commit e4a5f3b409

@ -98,6 +98,8 @@ def rax_facts(module, address, name, server_id):
except Exception, e: except Exception, e:
pass pass
servers[:] = [server for server in servers if server.status != "DELETED"]
if len(servers) > 1: if len(servers) > 1:
module.fail_json(msg='Multiple servers found matching provided ' module.fail_json(msg='Multiple servers found matching provided '
'search parameters') 'search parameters')

Loading…
Cancel
Save