diff options
author | Oliver Poignant <oliver@poignant.se> | 2016-03-13 11:44:12 +0100 |
---|---|---|
committer | Oliver Poignant <oliver@poignant.se> | 2016-03-13 11:44:12 +0100 |
commit | 5a8caf8b9c9f4f283dffac33b461b5c43ad64eed (patch) | |
tree | de8baa8d4c44b05d5214b2343b094ec49a156e30 /GitAutoDeploy.py | |
parent | a13fb8984037394af067e867c7b8fb0df082841f (diff) | |
download | Git-Auto-Deploy-5a8caf8b9c9f4f283dffac33b461b5c43ad64eed.zip Git-Auto-Deploy-5a8caf8b9c9f4f283dffac33b461b5c43ad64eed.tar.gz Git-Auto-Deploy-5a8caf8b9c9f4f283dffac33b461b5c43ad64eed.tar.bz2 |
Post PR edits
Diffstat (limited to 'GitAutoDeploy.py')
-rwxr-xr-x | GitAutoDeploy.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/GitAutoDeploy.py b/GitAutoDeploy.py index fd4e193..6013ec0 100755 --- a/GitAutoDeploy.py +++ b/GitAutoDeploy.py @@ -414,24 +414,19 @@ class GitAutoDeploy(object): try: # Verify that all filters matches the request (if any filters are specified) if 'filters' in repo_config: - filter_matched = True; # at least one filter must match for filter in repo_config['filters']: # all options specified in the filter must match for filter_key, filter_value in filter.iteritems(): - # support for earlier version so it's non-breaking functionality. + + # support for earlier version so it's non-breaking functionality if filter_key == 'action' and filter_value == action: continue if filter_key not in data or filter_value != data[filter_key]: - filter_matched = False - continue - - if not filter_matched: - logger.info ("No filter matched") - raise FilterMatchError() + raise FilterMatchError() except FilterMatchError as e: |