|
|
|
@ -2250,9 +2250,9 @@ class DecortController(object):
|
|
|
|
|
# self.result['msg'] = "vins_find(): cannot find Account ID {}.".format(account_id)
|
|
|
|
|
# self.amodule.fail_json(**self.result)
|
|
|
|
|
# NOTE: account's 'vins' attribute does not list destroyed ViNSes!
|
|
|
|
|
for runner in rg_facts['vins']:
|
|
|
|
|
# api_params['vinsId'] = runner
|
|
|
|
|
ret_vins_id, ret_vins_facts = self._vins_get_by_id(runner)
|
|
|
|
|
account_vinses = self._get_all_account_vinses(account_id)
|
|
|
|
|
for vins in account_vinses:
|
|
|
|
|
ret_vins_id, ret_vins_facts = self._vins_get_by_id(vins['id'])
|
|
|
|
|
if ret_vins_id and ret_vins_facts['name'] == vins_name:
|
|
|
|
|
if not check_state or ret_vins_facts['status'] not in VINS_INVALID_STATES:
|
|
|
|
|
return ret_vins_id, ret_vins_facts
|
|
|
|
|