~smoser/ubuntu/wily/maas/lp1474417

« back to all changes in this revision

Viewing changes to src/apiclient/maas_client.py

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2014-04-15 14:41:32 UTC
  • mfrom: (1.2.31)
  • Revision ID: package-import@ubuntu.com-20140415144132-anz6dn7ka9hso35i
Tags: 1.5+bzr2267-0ubuntu1
* New upstream bugfix release. Fixes:
  - Hardware Enablement for Cisco B-Series. (LP: #1300476)
  - Allow AMT power type to specify IP Address. (LP: #1308772)
  - Spurious failure when starting and creating lock files. (LP: 1308069)
  - Fix regression introduced by a security fix (LP: #1311433, LP: #1311433)
  - Fix usage of hardware enablement kernels by fixing the preseeds
    (LP: #1310082, LP: #1310076, LP: #1310082)
  - Fix parallel juju deployments. (LP: #1314409)
  - Clear distro_series when stopping node from WebUI (LP: #1316396)
  - Fix click hijacking (LP: #1298784)
  - Fix blocking API client when deleting a resource (LP: #1313556)
  - Do not import Trusty RC images by default (LP: #1311151)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2012 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2012-2014 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
 
4
4
"""MAAS OAuth API connection library."""
240
240
    def delete(self, path):
241
241
        """Dispatch a DELETE on the resource at `path`."""
242
242
        url, headers, body = self._formulate_change(path, {})
 
243
        # The body will be empty, but it must be passed.  Otherwise, the
 
244
        # request will hang while trying to read a response (bug 1313556).
243
245
        return self.dispatcher.dispatch_query(
244
 
            url, method="DELETE", headers=headers)
 
246
            url, method="DELETE", headers=headers, data=body)