From a654f76d780d5d95e343fe83a3208f6767cb2511 Mon Sep 17 00:00:00 2001 From: Sergey Shubin svs1370 Date: Tue, 3 Nov 2020 18:34:09 +0300 Subject: [PATCH] Avoid excessive compute/get calls in compute_find, bug fix 01 --- module_utils/decort_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module_utils/decort_utils.py b/module_utils/decort_utils.py index 1f9aeaf..d2af2b0 100644 --- a/module_utils/decort_utils.py +++ b/module_utils/decort_utils.py @@ -672,7 +672,7 @@ class DecortController(object): if runner['name'] == comp_name and runner['rgId'] == validated_rg_id: if not check_state or runner['status'] not in COMP_INVALID_STATES: ret_comp_id = runner['id'] - ret_comp_dict = runner + _, ret_comp_dict, _ = self._compute_get_by_id(ret_comp_id) break else: # validated_rg_id is zero - seems that we've been given RG ID for non-existent resource group.