Skip to content

Commit

Permalink
client: Fix some style warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nomis committed Jul 17, 2020
1 parent 1bd5a1b commit cfc8069
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions amt/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit cfc8069

Please sign in to comment.