Skip to content
This repository was archived by the owner on Jan 19, 2018. It is now read-only.

Commit fe37102

Browse files
committed
Merge pull request #609 from cdrage/warn-not-error-on-requirement
Warn not error on missing requirement
2 parents 1867265 + 490567d commit fe37102

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

atomicapp/requirements.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,14 @@ def _exec(self, action):
7979
requirement_function = self._find_requirement_function_name(key_name)
8080

8181
# Check to see if the function exists in the provider,
82-
# if it does not: fail
82+
# if it does not: warn the user
8383
try:
8484
requirement = getattr(self.provider, requirement_function)
8585
except AttributeError:
86-
raise RequirementFailedException(
87-
"Requirement %s does not exist within %s." %
86+
logger.warning(
87+
"Requirement %s does not exist within %s. Skipping." %
8888
(requirement_function, self.provider))
89+
continue
8990

9091
# Run the requirement function
9192
requirement(req[key_name], action)

0 commit comments

Comments
 (0)