~mpontillo/maas/dns-template-changes-1.7

« back to all changes in this revision

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

  • Committer: MaaS Lander
  • Author(s): Raphael Badin
  • Date: 2014-10-17 16:21:20 UTC
  • mfrom: (3263.2.1 revert-r-3263)
  • Revision ID: maas_lander-20141017162120-2f1sa7apve0uiryq
[r=andreserl][bug=][author=rvb] Revert revision 3263;  this change broke the CI: nodes cannot be commissioned (no-such-image error) with this change.

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 100.0 * size / float(self.total_size)
 
133
        return self.total_size / float(size)
134
134
 
135
135
    @property
136
136
    def complete(self):