diff --git a/lib/ansible/modules/extras/cloud/lxd/lxd_container.py b/lib/ansible/modules/extras/cloud/lxd/lxd_container.py index 947d928a5f..897da792d3 100644 --- a/lib/ansible/modules/extras/cloud/lxd/lxd_container.py +++ b/lib/ansible/modules/extras/cloud/lxd/lxd_container.py @@ -284,9 +284,9 @@ class LxdContainerManagement(object): def _send_request(self, method, url, body_json=None, ok_error_codes=None): try: - body = json.dumps(body_json) + body = json.dumps(body_json) self.connection.request(method, url, body=body) - resp = self.connection.getresponse() + resp = self.connection.getresponse() resp_json = json.loads(resp.read()) self.logs.append({ 'type': 'sent request',