From cfc806959b7e4ca05b2a2231bd700f97af84fce9 Mon Sep 17 00:00:00 2001 From: Simon Arlott Date: Fri, 17 Jul 2020 21:58:44 +0100 Subject: [PATCH] client: Fix some style warnings --- amt/client.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/amt/client.py b/amt/client.py index ba5e4e9..e42875d 100755 --- a/amt/client.py +++ b/amt/client.py @@ -112,9 +112,9 @@ def __init__(self, address, password, def post(self, payload, ns=None): resp = self.session.post(self.uri, - headers={'content-type': - 'application/soap+xml;charset=UTF-8'}, - data=payload) + headers={'content-type': + 'application/soap+xml;charset=UTF-8'}, + data=payload) resp.raise_for_status() self.version = resp.headers.get('Server') if ns: @@ -266,9 +266,9 @@ def configure_tls_pki(self, instance): creds = amt.wsman.prepare_tls_credentials(instance) if exists: - resp = self.post(amt.wsman.put_item(self.path, AMT_TLSCredentialContext, None, None, creds)) + self.post(amt.wsman.put_item(self.path, AMT_TLSCredentialContext, None, None, creds)) else: - resp = self.post(amt.wsman.create_item(self.path, AMT_TLSCredentialContext, creds)) + self.post(amt.wsman.create_item(self.path, AMT_TLSCredentialContext, creds)) return True