MCPcopy Create free account
hub / github.com/aws/aws-cli / ConditionEvaluator

Class ConditionEvaluator

awscli/customizations/wizard/core.py:472–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470
471
472class ConditionEvaluator:
473 def evaluate(self, condition, parameters):
474 statuses = []
475 if not isinstance(condition, list):
476 condition = [condition]
477 for single in condition:
478 statuses.append(self._check_single_condition(single, parameters))
479 return all(statuses)
480
481 def _check_single_condition(self, single, parameters):
482 varname = single['variable']
483 if 'equals' in single:
484 expected = single['equals']
485 return parameters.get(varname) == expected
486 return False
487
488
489class DataTypeConverter:

Callers 1

_execute_stepMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected