diff options
author | Oliver Poignant <oliver@poignant.se> | 2017-01-04 01:06:31 +0100 |
---|---|---|
committer | Oliver Poignant <oliver@poignant.se> | 2017-01-04 01:06:31 +0100 |
commit | 64b5ecd076710fdf0ed0f86fa7fb185caa183ddb (patch) | |
tree | f7afbe19d5212081018289f16838eec3974d22aa /gitautodeploy/httpserver.py | |
parent | d0c3f84a9be3f9ca4b2fbf63edf5951d3be1ea65 (diff) | |
download | Git-Auto-Deploy-64b5ecd076710fdf0ed0f86fa7fb185caa183ddb.zip Git-Auto-Deploy-64b5ecd076710fdf0ed0f86fa7fb185caa183ddb.tar.gz Git-Auto-Deploy-64b5ecd076710fdf0ed0f86fa7fb185caa183ddb.tar.bz2 |
Web socket server implementation
Diffstat (limited to 'gitautodeploy/httpserver.py')
-rw-r--r-- | gitautodeploy/httpserver.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gitautodeploy/httpserver.py b/gitautodeploy/httpserver.py index 5a06498..e830fe6 100644 --- a/gitautodeploy/httpserver.py +++ b/gitautodeploy/httpserver.py @@ -1,4 +1,7 @@ -from .parsers import CodingRequestParser, GitLabCIRequestParser, GitLabRequestParser, GitHubRequestParser, BitBucketRequestParser, GenericRequestParser +from .parsers import CodingRequestParser, GitLabCIRequestParser +from .parsers import GitLabRequestParser, GitHubRequestParser +from .parsers import BitBucketRequestParser, GenericRequestParser + class WebbhookRequestProcessor(object): @@ -70,7 +73,7 @@ class WebbhookRequestProcessor(object): # In case there is no path configured for the repository, no pull will # be made. - if not 'path' in repo_config: + if 'path' not in repo_config: res = GitWrapper.deploy(repo_config) repo_result['deploy'] = res result.append(repo_result) @@ -183,7 +186,7 @@ class WebhookRequestFilter(object): continue # If the filter value is set to True. the filter - # will pass regardless of the actual value + # will pass regardless of the actual value if filter_value == True: continue |