~makyo/juju-deployer/machines-and-placement

« back to all changes in this revision

Viewing changes to deployer/deployment.py

  • Committer: Madison Scott-Clary
  • Date: 2015-03-03 01:17:55 UTC
  • Revision ID: matthew.scott@canonical.com-20150303011755-5i00rtpsb32xtdh5
Checkpoint - first passing functional tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
        return services
50
50
 
51
51
    def get_machines(self):
52
 
        return self.data.get('machines', {})
 
52
        machines = {}
 
53
        for key, machine in self.data.get('machines', {}).items():
 
54
            machines[str(key)] = machine
 
55
        return machines
53
56
 
54
57
    def get_service_names(self):
55
58
        """Return a sequence of service names for this deployment."""