diff options
author | Ryota Mibu <r-mibu@cq.jp.nec.com> | 2018-01-09 13:02:33 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-01-09 13:02:33 +0000 |
commit | 9fd701278bf7d8c5b9451491bcb1a92580adc780 (patch) | |
tree | 885287d68762c5e755f082c88780b45e056dcc57 /doctor_tests/monitor/sample.py | |
parent | d767217e4ed267c585aa94fbbd3001ec0d59de8c (diff) | |
parent | 754b94bba6df6e7aafd5f1ffb8432a40cb815649 (diff) |
Merge "support pep8 check"
Diffstat (limited to 'doctor_tests/monitor/sample.py')
-rw-r--r-- | doctor_tests/monitor/sample.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/doctor_tests/monitor/sample.py b/doctor_tests/monitor/sample.py index 4dc5e603..c207cd9f 100644 --- a/doctor_tests/monitor/sample.py +++ b/doctor_tests/monitor/sample.py @@ -51,16 +51,20 @@ class SampleMonitor(BaseMonitor): } auth_token = self.session.get_token() if \ - self.conf.inspector.type != 'sample' else None + self.conf.inspector.type != 'sample' else None headers = { 'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': auth_token, } if self.conf.inspector.type != Inspector.VITRAGE: - requests.put(self.inspector_url, data=json.dumps([data]), headers=headers) + requests.put(self.inspector_url, + data=json.dumps([data]), + headers=headers) else: - requests.post(self.inspector_url, data=json.dumps(data), headers=headers) + requests.post(self.inspector_url, + data=json.dumps(data), + headers=headers) class Pinger(Thread): |