~ubuntu-branches/ubuntu/utopic/maas/utopic-security

« back to all changes in this revision

Viewing changes to src/maasserver/models/bootresourceset.py

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez, Michael McCracken
  • Date: 2014-10-22 12:55:08 UTC
  • mfrom: (1.3.2)
  • Revision ID: package-import@ubuntu.com-20141022125508-02a2o8f3y0tw5ig4
Tags: 1.7.0~beta8+bzr3272-0ubuntu1
* New Upstream Release, Beta 8 bzr 3272.
  - Maintain backward compatibility with status codes to not break
    client MAAS API users.  (LP: #1383609)
  - Allow users to disable DHCP NIC scanning during commissioning otherwise
    this can lead machines not being able to commission (LP: #1383384)
  - Ensure that MAAS can correctly download, and install HWE Kernels, and 
    not crash in the process. (LP: #1357532, LP: #1382281)
  - Add a lock to ensure we don't give the same 2 systems to two different
    users when acquiring a machine. (LP: #1382575)

[ Michael McCracken ]
* debian/maas-dns.postrm: ensure named.conf is cleaned of maas
  includes (LP: #1346538)

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
        if size <= 0:
131
131
            # Handle division by zero
132
132
            return 0
133
 
        return self.total_size / float(size)
 
133
        return 100.0 * size / float(self.total_size)
134
134
 
135
135
    @property
136
136
    def complete(self):