diff options
author | Steven Wright <sw3588@att.com> | 2019-10-04 17:40:30 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-10-04 17:40:30 +0000 |
commit | d856b38ab47ce2405d343fcb7848629892d3c0b7 (patch) | |
tree | e93681deeedacc5496a97e2f36399587887325e1 /ice_validator/tests | |
parent | b3284f2281c5ede1d6f7b4d68a9e8646960fface (diff) | |
parent | 419066fa60b2d18e768c0c572951bbf048c5af6f (diff) |
Merge "Refactor function to reduce Cognitive Complexity"
Diffstat (limited to 'ice_validator/tests')
-rw-r--r-- | ice_validator/tests/utils/vm_types.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ice_validator/tests/utils/vm_types.py b/ice_validator/tests/utils/vm_types.py index 7570581..56d824b 100644 --- a/ice_validator/tests/utils/vm_types.py +++ b/ice_validator/tests/utils/vm_types.py @@ -63,9 +63,7 @@ def get_vm_types_for_resource(resource): vm_types = [] for k2, v2 in resource["properties"].items(): - if k2 not in key_values: - continue - if "get_param" not in v2: + if any([k2 not in key_values, "get_param" not in v2]): continue formats = [v for v in key_value_formats if v[0] == k2] for v3 in formats: |