diff options
author | Joshua Powers <josh.powers@canonical.com> | 2020-06-10 07:39:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-10 10:39:29 -0400 |
commit | f3bd42659efeed4b092ffcdfd5df7f24813f2d3e (patch) | |
tree | 09e39d069dd98e19781859e17a03773b7cefff7f /cloudinit/reporting | |
parent | f083050478adc199648c980991f2bcece79ed31b (diff) | |
download | vyos-cloud-init-f3bd42659efeed4b092ffcdfd5df7f24813f2d3e.tar.gz vyos-cloud-init-f3bd42659efeed4b092ffcdfd5df7f24813f2d3e.zip |
test: fix all flake8 E126 errors (#425)
Diffstat (limited to 'cloudinit/reporting')
-rwxr-xr-x | cloudinit/reporting/handlers.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/cloudinit/reporting/handlers.py b/cloudinit/reporting/handlers.py index 00e8d2e5..6b9127b6 100755 --- a/cloudinit/reporting/handlers.py +++ b/cloudinit/reporting/handlers.py @@ -139,7 +139,8 @@ class HyperVKvpReportingHandler(ReportingHandler): self.event_key_prefix = u"{0}|{1}".format(self.EVENT_PREFIX, self.incarnation_no) self.publish_thread = threading.Thread( - target=self._publish_event_routine) + target=self._publish_event_routine + ) self.publish_thread.daemon = True self.publish_thread.start() @@ -202,10 +203,15 @@ class HyperVKvpReportingHandler(ReportingHandler): uuid.uuid4()) def _encode_kvp_item(self, key, value): - data = (struct.pack("%ds%ds" % ( + data = struct.pack( + "%ds%ds" + % ( self.HV_KVP_EXCHANGE_MAX_KEY_SIZE, - self.HV_KVP_EXCHANGE_MAX_VALUE_SIZE), - key.encode('utf-8'), value.encode('utf-8'))) + self.HV_KVP_EXCHANGE_MAX_VALUE_SIZE, + ), + key.encode("utf-8"), + value.encode("utf-8"), + ) return data def _decode_kvp_item(self, record_data): |