Code Review
/
vvp
/
validation-scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
3d9c737
)
Refactor function to reduce Cognitive Complexity
26/96526/1
author
anushadasari
<danush10@in.ibm.com>
Wed, 2 Oct 2019 19:07:07 +0000
(
00:37
+0530)
committer
anushadasari
<danush10@in.ibm.com>
Wed, 2 Oct 2019 19:11:26 +0000
(
00:41
+0530)
Issue-ID: VVP-314
Change-Id: I0843dde3cc01ef2efbb08a282b93c5e3414a1cd2
Signed-off-by: anushadasari <danush10@in.ibm.com>
ice_validator/tests/utils/vm_types.py
patch
|
blob
|
history
diff --git
a/ice_validator/tests/utils/vm_types.py
b/ice_validator/tests/utils/vm_types.py
index
7570581
..
56d824b
100644
(file)
--- 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: